why i cannot open colea
16 次查看(过去 30 天)
显示 更早的评论
I'm using Matlab 2015a, just install "colea", i have place into the toolbox file. also i have set the path. but when i type "colea" in the xommand window. the following error occured:
>> colea
Cannot find an exact (case-sensitive) match for 'colea.m'
The closest match is Y:\Program Files\MATLAB\toolbox\colea\COLEA.M
To change the file extension, cd to the file's folder, type:
movefile COLEA.M COLEA.m_bad; movefile COLEA.m_bad COLEA.m and then cd back.
i followed the above instruction which is "type movefile COLEA.M COLEA.m_bad;...." this is what i got:
>> movefile COLEA.M COLEA.m_bad; movefile COLEA.m_bad COLEA.m
Error using movefile
No matching files were found.
PLEASE help, thanks
5 个评论
John D'Errico
2015-5-3
Because you put it into the MATLAB toolbox directory. DO NOT DO THIS.
Put it in your own directory, SEPARATE from this place. That directory should be on your search path.
回答(2 个)
Image Analyst
2015-5-3
You cd'ed to the toolbox folder, not the colea folder. Change the current folder to colea:
cd ('Y:\Program Files\MATLAB\toolbox\colea');
% Then call colea functions.....
I'm curious why your MATLAB is on the Y drive instead of the C drive, and why the MATLAB folder does not have the R2015a name in it. Mine looks like C:\Program Files\MATLAB\R2015a\toolbox. Did you install it on a custom drive and changed the default directory name?
3 个评论
Image Analyst
2015-5-3
Try typing it in with all capital letters. MATLAB is case sensitive. Open up the file in the editor. Is it all capital letters there?
Walter Roberson
2015-5-4
After you cd to Y:\Program Files\MATLAB\toolbox\colea\ is the time you do the instructions
movefile COLEA.M COLEA.m_bad; movefile COLEA.m_bad colea.m
Note: if there are additional functions in the folder then the colea.m might not be able to find them. If the code is written in terms of calling them in uppercase then you would need to follow the path for changing the .M to .m such as
movefile X.M X.m_bad; movefile X.m_bad X.m
for each file X.M in the directory. If there are just a few, do them by hand. If there are lot then it is time to write a script to handle the task.
OSCAR VITERI
2017-6-29
This happen with codes written in past version of Matlab Use: Save as' with a new name and check that the extension is: '.m' and not '.M'. Additional the name of this file must be equal to the name of your function.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!