issues with syms function

9 views (last 30 days)
Reem Alblooshi
Reem Alblooshi on 8 Oct 2020
Commented: GAGANDEEP KAUR on 27 Oct 2020
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]
The output
Error in syms (line 227)
defined = sym(zeros(1, length(args)));
Error in quiz (line 1)
syms a [1 4]
GAGANDEEP KAUR on 27 Oct 2020
I have tried as you adviced but still it is keep on running. If possible may you please have a look at attcahed files

Sign in to comment.

Accepted Answer

Ameer Hamza
Ameer Hamza on 10 Oct 2020
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.
Ameer Hamza
Ameer Hamza on 11 Oct 2020
I am glad to be of help!

Sign in to comment.

More Answers (1)

madhan ravi
madhan ravi on 8 Oct 2020
You have a custom file named sym.m , remove it from the path or rename it.
  1 Comment
Reem Alblooshi
Reem Alblooshi on 10 Oct 2020
I tried deleting the file but I keep getting this messsage
Warning: File 'sym.m' not found.
> In quiz (line 2)
although the file does exist.

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by