how to obtain the orthogonal vectors of one 3*1 unit vector?
18 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stanley Cheng
am 17 Dez. 2013
Kommentiert: Jeff
am 4 Dez. 2014
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!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
David Sanchez
am 17 Dez. 2013
a = [0.6619 0.6976 -0.2740];
b = [a(1) a(3) -a(2)];
c = cross(a,b);
c = c/norm(c);
M = [a;b;c]; % orthogonal matrix
1 Kommentar
Matt J
am 17 Dez. 2013
Don't think so
>> M'*M
ans =
1.2669 0.0854 -0.1959
0.0854 0.6590 -0.2232
-0.1959 -0.2232 1.0738
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!