order of multiplication in symbolic toolbox

1 Ansicht (letzte 30 Tage)
Daniel Zelazo
Daniel Zelazo am 27 Okt. 2012
Is there a way to define a symbolic variable as a matrix without specifying its dimension?
I know I can do, for example
A = sym('A',[m n]);
Ultimately I want multiplications of variables to preserve their order. For example,
A*X*A would result in X*A^2. If I could define A and X as matrices, it would keep that order; similarly for inverses.
Thanks!
dan

Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by