function name
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Why is it that a function does not work with some names? e.g. I named one of my functions magnuson(PathName) and the function would not work, it would return an error saying:
Undefined function 'magnuson' for input arguments of type 'char'.
Then after changing the name of the function to magnuson_LA(PathName) it worked perfectly. Why is this?
0 commentaires
Réponse acceptée
Oleg Komarov
le 5 Mar 2012
Usually that error comes when the function has been saved on path that MATLAB cannot reach.
Matlab checks for functions in the current directory and a saved list of paths.
To add a path to the search:
addpath('C:\...\')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Search Path dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!