MATLAB: How to obtain the orthogonal vectors of one 3*1 unit vector

MATLABorthogonal vectors

Hi everyone,
I have a 3*1 unit vector as r1= [ 0.6619 0.6976 -0.2740]', and want to obtain the other two unit orthogonal vectors of r1. these two vectors are named as r2 and r3, they satisfy:
R=[r1 r2 r3] is a 3*3 unit orthogonal matrix.
Could anyone tell me what commands in matlab is useful to do this? Thx very much!

Best Answer

null(r1(:).')