Edit vs open from command line
2 ビュー (過去 30 日間)
古いコメントを表示
I have two classes, Sub and Super, where Sub is a subclass of Super. Both m-files are in the same folder (say /path/to/mydir). I noticed a difference between using open and edit from the command line. If the current directory is /path/to/mydir, then using either
edit Sub.m
open Sub.m
open Sub.m in the editor. However, if the current directory is a different one and /path/to/mydir is on the Path, then
edit Sub.m
opens Super.m, while
open Sub.m
opens Sub.m in the editor. What is the difference between using edit or open for m-files?
If it's relevant, I'm using MATLAB R2014b on Linux.
0 件のコメント
回答 (1 件)
Andrew Bliss
2017 年 9 月 27 日
That's odd that edit Sub.m would open Super.m. Perhaps
which('Sub.m','-all')
could help trace the problem?
参考
カテゴリ
Help Center および File Exchange で Software Development Tools についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!