How to create a Mupad symbolic variable as a matrix

Hi,
Is it possible to create a Mupad symbolic variable as a matrix, only specifying the dimension but not the element?
I don't want the elements of the matrix variable to appear in my equation.
Thanks in advance!
Rgds, Jian

 Accepted Answer

Do you need to do this at the MATLAB level or at the MuPAD level?
Is there a particular data type that the matrix will hold (e.g., numbers only), or do you need a general symbolic matrix?

2 Comments

I need a general symbolic matrix at Mupad level
I thought I had answered this already, but perhaps that was a day that the site was acting up.
At the MuPAD level, you create general symbolic arrays with the array() call.
http://www.mathworks.com/help/toolbox/mupad/stdlib/array.html

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!