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.

 채택된 답변

yo just have to specify the full path:
fid=fopen('C:\users\your_name\Desktop\your_file.txt');

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기

질문:

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