why i cannot open colea

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

When you cd to the folder, what is the result of commanding
ls
Anton
Anton on 3 May 2015
Edited: Image Analyst on 3 May 2015
>> ls
. compiler distcomp finance globaloptim instrument mlhadoop realtime rtw simulink slreportgen symbolic
.. compiler_sdk dotnetbuilder fininst hdlcoder javabuilder nnet rf shared sl3d slrt systemtest
bioinfo control dsp fixedpoint idelink local optim rfblks signal slcontrol slvnv target
coder curvefit econ fixpoint ident map pde robust simbio sldo spfirst vision
colea daq eml fuzzy images matlab physmod rptgen simevents sldrt stateflow voicebox
comm database exlink geoweb imaq matlabxl plccoder rptgenext simrf sldv stats wavelet
this is the results, you can see "colea" is there. on other computers, no matter which directory you are, colea command works
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.
even i put into other directory, still same problem.
>> ls
. .. COLEA Manual.pdf ECTE 401 Lab6.docx colea

Sign in to comment.

Answers (2)

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

>> cd ('Y:\Program Files\MATLAB\toolbox\colea'); >> 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.
Sorry, still not work
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?
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.

Sign in to comment.

OSCAR VITERI
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

Tags

Asked:

on 3 May 2015

Answered:

on 29 Jun 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!