Is it possible to allow the Symbolic Math Toolbox to properly handle multi-dimensional matrices.

1 view (last 30 days)
I define a multi-dimensional array as a sym object and perform the following mathematical operation:
x = round(rand(2,2,4)*10);
s = sym(x);
s+s
I receive the following error:
??? Error using ==> ~=
Matrix dimensions must agree.
Error in ==> D:\MATLAB521\toolbox\symbolic\@sym\plus.m
On line 25 ==> if any(size(X) ~= size(A))

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This feature has been added in Symbolic Math Toolbox 3.1 (R14).
If you are using a previous version, there are no workarounds.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!