- the quoted string is the first expression (possibly after whitespace) after the beginning of the line, or after a comma (",") or semi-colon (";") that marks the end of anything previous on the line
- the quoted string immediately follows (no whitespace) a non-quoted underscore ('_') or period ('.')
- the quoted string immediately follows (no whitespace) a latin letter or latin digit
Why does tab complete not work for user written functions that except filenames?
2 ビュー (過去 30 日間)
古いコメントを表示
Why does tab complete not work for user written functions that except filenames?
function testFunction(file)
disp(file)
end %end function
Call the above function with a file. While entering the file name, try to tab complete it. It won't work. Why not?
0 件のコメント
採用された回答
Walter Roberson
2013 年 8 月 14 日
編集済み: Walter Roberson
2013 年 8 月 14 日
The rules for tab completion are not well defined, and do not always make sense.
Tab completion for a quoted string takes place if:
In addition, there are circumstances under which a quoted string that follows an exclamation mark ('!') may lead to a flawed tab completion, in which the resulting word is missing one or more characters from the file name.
None of the above situations match attempting to enter a valid quoted string as the argument to a function. :(
2 件のコメント
その他の回答 (1 件)
David Sanchez
2013 年 8 月 14 日
The user defined function has to be saved on the current directory or its path set on matlab paths. Matlab will not autocomplete a function name of a function located in a directory different to the working directory.
参考
カテゴリ
Help Center および File Exchange で Environment and Settings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!