This seems like it should be simple, but I haven't been able to figure out how to use Matlab to calculate an orthogonal vector.
If my vector is:
Then dot(p, the_orthogonal_vector) should = 0. But how can I calculate the orthogonal vector? I tried
but couldn't see how to apply that to this.