The syms function will not work?

I'm having an issue with the syms command. It used to operate but now I keep getting the following error: Error using sym Error: File: sym.m Line: 209 Column: 10 Illegal use of reserved keyword "if".
Error in syms (line 77) toDefine = sym(zeros(1, 0));
I'm told that at some point, the code for this function was altered. I tried to fix the code but I think I made the issue worse. Can you please provide me with the proper code? If not, is there any other way to fix this issue?

3 comentarios

Stephan
Stephan el 6 de Oct. de 2018
How can we fix a code we do not have?
madhan ravi
madhan ravi el 6 de Oct. de 2018
Editada: madhan ravi el 6 de Oct. de 2018
Upload sym.m file and your script file where you use it.
Walter Roberson
Walter Roberson el 7 de Oct. de 2018
Sounds like your sym.m might be corrupt. Perhaps you were debugging and had it show up with an error message and then you accidentally typed into it and it accidentally got saved.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 6 de Oct. de 2018

Comentada:

el 7 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by