how to obtain the orthogonal vectors of one 3*1 unit vector?

조회 수: 11 (최근 30일)
Stanley Cheng
Stanley Cheng 2013년 12월 17일
댓글: Jeff 2014년 12월 4일
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!

채택된 답변

Matt J
Matt J 2013년 12월 17일
편집: Matt J 2013년 12월 17일
  댓글 수: 3
Matt J
Matt J 2013년 12월 17일
Yes. If you look inside null.m you will see that it uses SVD, but with thresholding rules that you may not agree with.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

David Sanchez
David Sanchez 2013년 12월 17일
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
Matt J
Matt J 2013년 12월 17일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by