How to generate a dynamic plane of points?
Show older comments
I need to generate a dynamic plane of points perpendicular to a given input vector.
For example, if given input vector of [0 0 1], I want to generate a set of points that are uniformly distributed and perpendicular to the input vector, similar to this:

As an output, I get a list of coordinates for each point in the array -- see the attached .mat file for an example.
For an input vector such as the above example, this is a very straightforward process and I had this working very quickly. The issue is when the vector is complex and not parallel to an axis. How can I automatically generate these points when given a more complicated vector such as [1 2 0] or [-5 3 2]?
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!