Why custom function in path are not found anymore?
Afficher commentaires plus anciens
I use matlab R2009b on windows 7 64-bit. I've been using it since 2009 with no troubles, now all the functions I defined in the past do not work anymore. To give an example:
I use often a function called "readdls9000" which is in C:\matlab folder
when I type
path
on prompt line the output is:
MATLABPATH
C:\matlab
C:\Users\cernicca\Documents\MATLAB
C:\Program Files\MATLAB\R2009b\toolbox\matlab\general
C:\Program Files\MATLAB\R2009b\toolbox\matlab\ops
C:\Program Files\MATLAB\R2009b\toolbox\matlab\lang
C:\Program Files\MATLAB\R2009b\toolbox\matlab\elmat
C:\Program Files\MATLAB\R2009b\toolbox\matlab\randfun
C:\Program Files\MATLAB\R2009b\toolbox\matlab\elfun
C:\Program Files\MATLAB\R2009b\toolbox\matlab\specfun
C:\Program Files\MATLAB\R2009b\toolbox\matlab\matfun
C:\Program Files\MATLAB\R2009b\toolbox\matlab\datafun
...
if I type
which readdls9000
the output is
C:\matlab\readdls9000.m % Has no license available
therefore the function is recognized by Matlab. However if I try to call it from prompt line or from a routine I get this:
>> readdls9000
??? Undefined function or variable 'readdls9000'.
This was just an example the same goes for any function that I wrote, which is in a folder added to Matlab path.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Startup and Shutdown dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!