syms can't be used
Show older comments

5 Comments
madhan ravi
on 9 Jun 2020
>> which syms -all
/Applications/MATLAB_R2018b.app/toolbox/symbolic/symbolic/syms.m
>>
If you have anything other than that it might be the issue. I guess it's due to MUPAD.
洋 于
on 9 Jun 2020
Stephan
on 9 Jun 2020
Would be worth a try to update your Matlab - maybe problem is solved then.
Star Strider
on 9 Jun 2020
The MATLAB version is likely not the problem.
Consider that you are requesting a (1x0) scalar, when scalars are defined as (1x1) in MATLAB. With any dimension defined as 0, the result is an empty vector.
John D'Errico
on 9 Jun 2020
You are trying to use syms, in the most basic way possible.
syms x
>> x
x =
x
And that is what SHOULD happen. What you show is a failure in the simplest thing you can do.
So often when I see a problem like this, it means the person has inadvertantly created a function of their own, with a colliding name. Perhaps you created an m-file named sym or syms, which effectively overloads the existing tools. Your function now gets called in place of the correct function. Or, perhaps you mistakenly edited the existing m-files from MATLAB. People do this by mistake, and then mistakenly save the result. These are all bad things to do.
So the very first thing I would try is to redownload the symbolic toolbox. Even better would be to start from a fresh copy of MATLAB. That is cleaner yet.
Answers (0)
Categories
Find more on Common Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!