how to define a unknown matrix

5 ビュー (過去 30 日間)
YI Hsu Lo
YI Hsu Lo 2012 年 12 月 5 日
i have 10 unknowns
for example d1_1 d1_2 d2_1 d2_2 d3_1 d3_2 d4_1 d4_2 d5_1 d5_2
and i would like to place them into a matrix d which
d ( : , : , 1 ) = [ d1_1 ; d1_2 ] ;
d ( : , ; , 1 ) = [ d2_1 ; d2_2 ];
. . . . . . . . . . .
is there any simpler way for me to define this d matrix?
thank you!

採用された回答

Walter Roberson
Walter Roberson 2012 年 12 月 5 日
If you have a relatively new version of the Symbolic Toolbox (R2011b or later I think it is),
d = sym('d', [5 2])
  2 件のコメント
YI Hsu Lo
YI Hsu Lo 2012 年 12 月 5 日
oh i don't think i have that ;-(
so there is no other way to solve this problem?
anyway, thank you!
Walter Roberson
Walter Roberson 2012 年 12 月 5 日
No. Symbolic Toolbox (or equivalent) is the only way to express unknowns.
Or is your question that you have 10 known values and you want to place them in an array?

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by