Random Vector Normal to a Given Vector

Version 1.0.0.0 (1.19 KB) by David
Random unit vectors are generated that are normal to a specified vector in 3-space.
196 Downloads
Updated 16 Dec 2011

View License

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 (2024). 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 .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Creating and Concatenating Matrices in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0