why i cannot open colea
Show older comments
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 Comments
Walter Roberson
on 3 May 2015
When you cd to the folder, what is the result of commanding
ls
Anton
on 3 May 2015
Edited: Image Analyst
on 3 May 2015
Anton
on 3 May 2015
John D'Errico
on 3 May 2015
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.
Anton
on 3 May 2015
Answers (2)
Image Analyst
on 3 May 2015
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 Comments
Anton
on 3 May 2015
Image Analyst
on 3 May 2015
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
on 4 May 2015
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
on 29 Jun 2017
0 votes
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.
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!