syms does not work on my matlab
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Seungjun Lee
le 8 Sep 2022
Commenté : John D'Errico
le 11 Jan 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?
0 commentaires
Réponse acceptée
John D'Errico
le 8 Sep 2022
Modifié(e) : John D'Errico
le 8 Sep 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 commentaires
John D'Errico
le 11 Jan 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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!