Why is the symbolic math toolbox not working? I have it installed and I'm using the code from the online example but it won't work.
9 次查看(过去 30 天)
显示 更早的评论
1 个评论
KSSV
2021-11-29
It looks there is a file named solve.m in the folder you are working....Is so rename it.
What does which solve show up?
回答(1 个)
Walter Roberson
2021-11-29
/Applications/MATLAB_R2019a.app/toolbox/symbolic/symbolic/@sym/solve.m appears to be corrupt.
The first line of it should be
function varargout = solve(varargin)
but you have some other first line instead.
Note: newer versions of solve() do not accept character vectors. You should be coding
syms B E A S n K
solve((B^2*E^2)/(A*S^n)==K, A)
which makes sense.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!