Why custom function in path are not found anymore?
이전 댓글 표시
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.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!