issues with syms function
6 次查看(过去 30 天)
显示 更早的评论
Whenever I use the syms (symbolic function) code I keep getting errors, even on simple codes that I am sure they are correct.
For example this simple code
syms a [1 4]
a
The output
Error in syms (line 227)
defined = sym(zeros(1, length(args)));
Error in quiz (line 1)
syms a [1 4]
9 个评论
Walter Roberson
2020-10-27
restoredefaultpath
rehash toolboxcache
syms x
and see if that works.
I suspect you have a third-party function that is interfering with operation the Mathworks sym.m
GAGANDEEP KAUR
2020-10-27
I have tried as you adviced but still it is keep on running. If possible may you please have a look at attcahed files
采纳的回答
Ameer Hamza
2020-10-10
Most likely scenario is that you somehow overwrote the sym.m file. The only way to fix it is to delete the current installation and reinstall MATLAB.
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
