Finds a perpendicular vector

Finds a perpendicular vector of input (3-dim)
1.5K Downloads
Updated 9 Sep 2011

View License

This simple function finds one of the infinitely many perpendicular vectors of the input vector limited for 3 dimensions.
I use this in my master thesis to find one of the two vectors that span a plane (where the input is the normal vector to the plane). The other vector that spans the plane is of course the cross produkt of the normal and the first perpendicular vector.

Cite As

Christoffer Stausland (2024). Finds a perpendicular vector (https://www.mathworks.com/matlabcentral/fileexchange/32811-finds-a-perpendicular-vector), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.4.0.0

Updated the file (forgot to remove a disp) and the screenshot

1.2.0.0

Updated the comment