Location vector in matlab

3 ビュー (過去 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 Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by