필터 지우기
필터 지우기

How to solve a set of equations?

조회 수: 1 (최근 30일)
tabw
tabw 2014년 9월 11일
댓글: tabw 2014년 9월 11일
[ cos(phi)*cos(theta), -sin(theta), -cos(theta)*sin(phi)]= 1
[ cos(phi)*sin(theta), cos(theta), -sin(phi)*sin(theta)]=0
[ sin(phi), 0, cos(phi)]=0
How to solve the phi and theta?
I tried A\B, it seems don't work.
Thanks,
  댓글 수: 2
Roger Stafford
Roger Stafford 2014년 9월 11일
편집: Roger Stafford 2014년 9월 11일
As you have posed it, your question does not make sense. You are setting three-element row vectors equal to scalars. What are the actual equations you are trying to solve? There are two unknowns, so presumably you have two equations in mind.
tabw
tabw 2014년 9월 11일
Actually, I have a vector i,j,k. I want to multiply it with a rotational matrix to make the vector align with one of the three axis(x,y,z)

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by