Random Vector Normal to a Given Vector

Random unit vectors are generated that are normal to a specified vector in 3-space.

You are now following this Submission

This function will randomly generate unit vectors that are normal to a given vector in 3-space. It ues the function: unifrnd in the Statistics Toolbox; user can change this to use rand function w/o much effort if doesn't have Statistics Toolbox.

Cite As

David (2026). Random Vector Normal to a Given Vector (https://www.mathworks.com/matlabcentral/fileexchange/34239-random-vector-normal-to-a-given-vector), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0