Location vector in matlab

조회 수: 1 (최근 30일)
Rana Önem
Rana Önem 2021년 10월 28일
댓글: Rana Önem 2021년 10월 28일
Hello, I have a vector that state the location on xyz coordinate.
ohm=ohmxi+ohmyj+ohmzk
how can i write this coordinates as a vector on matlab? Can you help me?
ohmx=((1-mu^2))^1/2*sin(fi); % the direction of the fission product of x
ohmy=((1-mu^2))^1/2*cos(fi); %the direction of the fission product of y
ohmz=mu;
ohm=colon(ohmx,ohmy,ohmz) ;
is this gonna work?

채택된 답변

David Hill
David Hill 2021년 10월 28일
ohmx=((1-mu^2))^1/2*sin(fi);
ohmy=((1-mu^2))^1/2*cos(fi);
ohmz=mu;
ohm=[ohmx,ohmy,ohmz];%this is your vector
  댓글 수: 1
Rana Önem
Rana Önem 2021년 10월 28일
thank you so much

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by