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 个)

Walter Roberson
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)
ans = 
which makes sense.

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by