why i cannot open colea

조회 수: 16 (최근 30일)
Anton
Anton 2015년 5월 3일
답변: OSCAR VITERI 2017년 6월 29일
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
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.
Anton
Anton 2015년 5월 3일
even i put into other directory, still same problem.
>> ls
. .. COLEA Manual.pdf ECTE 401 Lab6.docx colea

댓글을 달려면 로그인하십시오.

답변 (2개)

Image Analyst
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
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
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
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.

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by