Can you open a file that is not in your matlab directory with the fopen function?

From your desktop forexample? Do you have to specify it's location to fopen, the filename alone seems to not be enough.

 採用された回答

David Sanchez
David Sanchez 2013 年 12 月 2 日
yo just have to specify the full path:
fid=fopen('C:\users\your_name\Desktop\your_file.txt');

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSearch Path についてさらに検索

質問済み:

2013 年 12 月 2 日

回答済み:

2013 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by