assign variable k as imaginary number

3 ビュー (過去 30 日間)
AngelsaAtWar
AngelsaAtWar 2013 年 10 月 5 日
コメント済み: AngelsaAtWar 2013 年 10 月 5 日
how do I assign k as an imaginary variable in the equn.
U= -8*i - 14*j + 25*k

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 5 日
You don't. Your i and j and k are not referring to imaginary variables, they are referring to mutually perpendicular direction vectors. You can emulate the form A*i + B*j by using the complex value A + B*i or A + B*j which are identical (i and j mean exactly the same thing in MATLAB.) MATLAB does not, however, provide syntax for extending this notation into another direction.
The closest you can get without loading in a package from the File Exchange would be coding something like
U = [-8 -14 +25]
and then taking care with the operations done on the vector.
  1 件のコメント
AngelsaAtWar
AngelsaAtWar 2013 年 10 月 5 日
Thank you that explains alot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by