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

1 次查看(过去 30 天)
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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by