why i cannot open colea

16 visualizzazioni (ultimi 30 giorni)
Anton
Anton il 3 Mag 2015
Risposto: OSCAR VITERI il 29 Giu 2017
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 Commenti
John D'Errico
John D'Errico il 3 Mag 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
Anton il 3 Mag 2015
even i put into other directory, still same problem.
>> ls
. .. COLEA Manual.pdf ECTE 401 Lab6.docx colea

Accedi per commentare.

Risposte (2)

Image Analyst
Image Analyst il 3 Mag 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 Commenti
Image Analyst
Image Analyst il 3 Mag 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
Walter Roberson il 4 Mag 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.

Accedi per commentare.


OSCAR VITERI
OSCAR VITERI il 29 Giu 2017
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.

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by