필터 지우기
필터 지우기

Tab completion produces no filenames (Mac OS)

조회 수: 4 (최근 30일)
Eric Barnhill
Eric Barnhill 2012년 3월 6일
Hi, I'm using MATLAB on a lab Mac. Tab completion doesn't offer any filenames when used as argument in, say, imread or dicomread. Is there a way to turn it on? Thanks.

답변 (2개)

Ken Atwell
Ken Atwell 2012년 3월 7일
I disagree with Laurens -- tab completion does work in many situations when a function is known to expect a filename as input. And it works, for me at least, in R2011b on my Mac. Try:
!touch junk.jpg
imread('f
Press 'tab' after typing 'f'. MATLAB should autocomplete to foo.jpg (and possibly others too depending on what is on your path). If this does not work, please tells us more about your configuration (MATLAB release, OS X release, type of file system, etc.).
  댓글 수: 1
Alec
Alec 2012년 4월 18일
Is there anyway to program this behavior in my own functions? I'd like to be to issue:
<code>
myread('f
</code>
and then hit tab to see 'foo.jpg'

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


Laurens Bakker
Laurens Bakker 2012년 3월 7일
Hi Eric,
There is no tab completion on strings because they are literals. MATLAB does not know that the string you are typing is a file name or path. Perhaps this will change in a future release...
Cheers,
Laurens

카테고리

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