Telling MuPad that Symbolic Variable is a Matrix and not a Scalar (Symbolic Matrix Operations)

1 回表示 (過去 30 日間)
Hi,
is there a way to tell MuPad that symbolic variables A and B are matrices and not scalars? It usually sorts the variables in an alphabetic order. Hence, B*A produces A*B, which won't be correct in case of matrices.
I need to re-arrange large equations that involve matrices and would like to do this in MuPad.
Thanks in advance.
Cheers,
m

採用された回答

Walter Roberson
Walter Roberson 2011 年 3 月 10 日
Which release do you have? If you have 2010b or later, you can do it, provided you assign specific dimensions: see the documentation for sym
That method is new for 2010b; before that you have to assign it a matrix of symbolic values, such as I show here

その他の回答 (2 件)

MIchael
MIchael 2011 年 4 月 4 日
Hi Walter,
sorry for the late reply. Indeed, I am using an older version, and therefore cannot use this (useful) feature.
Thanks for your reply, it has given the right answer.
Michael

Jian Wang
Jian Wang 2011 年 10 月 19 日
Hi, I am having the same problem in Mupad. The sym command given above can't be used in Mupad, right? How to do that in Mupad?
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 10 月 22 日
Jian,
You can use the MuPAD array() call,
http://www.mathworks.com/help/toolbox/mupad/stdlib/array.html

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by