Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のファイル構造は
/home/me + octave - script.m + data - index.txt
でscript.m:
script.m
fid = fopen("data/index.txt");
script.m を実行すると、ファイルを開く/見つけることができません。
pwdスクリプトで行うと、/home/me
pwd
/home/me
fopen現在のディレクトリ (script.m が実行されている場所) を参照点として常に使用する方法はありますか?
fopen