error when trying to run fit function
Afficher commentaires plus anciens
I keep getting the error:
Attempt to execute SCRIPT mpower as a function:
/Applications/MATLAB_R2020b.app/toolbox/matlab/ops/mpower.m
while trying to run my fit function. Any idea how to fix this?
Réponses (1)
Torsten
le 7 Avr 2023
0 votes
Seems you gave your script the name "mpower.m".
This conflicts with the built-in MATLAB function with the same name.
Rename your script.
2 commentaires
Moheb Amir Adel Kamel Rafla
le 7 Avr 2023
Please post the results of executing this command from your Command Window or a script:
which mpower -all
Your result should be similar to this. If there are any other entries, that points to the problem.
.
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!