syms does not work on my matlab

66 visualizaciones (últimos 30 días)
Seungjun Lee
Seungjun Lee el 8 de Sept. de 2022
Comentada: John D'Errico el 11 de En. de 2024
I have installed Symbolic Math Toolbox and Simulink for my Matlab but when I try to use syms on my program it doesn't work.
"Execution of script syms as a function is not supported:" shows up
At first I thought I installed it wrong but sym works perfectly fine....
Only syms doesn't work....
What is the problem?

Respuesta aceptada

John D'Errico
John D'Errico el 8 de Sept. de 2022
Editada: John D'Errico el 8 de Sept. de 2022
Is there a reason why you decided to name a script syms, and then tried to use syms itself? What you did was confuse MATLAB, so that now, when it tried to use the real syms command/function, it sees your script FIRST.
DO NOT NAME YOU OWN FUNCTIONS OR SCRIPTS WITH NAMES THAT ALREADY EXIST. If you do that, then do you see what happens?
To fix this, rename the script you created.
  8 comentarios
John
John el 10 de En. de 2024
LOL. I just ran into the same problem, named a script with syms.
John D'Errico
John D'Errico el 11 de En. de 2024
This is perhap one of the ways new users to MATLAB most frequently aground. And then they get a strange error, because MATLAB becomes completely confused. It has no idea what went wrong. The solution is to get used to the idea of not naming your scripts of functions with names already in use. It becomes a habit that you learn, avoiding that. And from then on, the problem goes away, at least for you.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by