Is it possible to allow the Symbolic Math Toolbox to properly handle multi-dimensional matrices.
1 view (last 30 days)
Show older comments
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
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Variables, Expressions, Functions, and Preferences in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!