Finds a perpendicular vector
Version 1.4.0.0 (1.49 KB) by
Christoffer Stausland
Finds a perpendicular vector of input (3-dim)
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 LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.