access file from ext. hdd
조회 수: 12 (최근 30일)
이전 댓글 표시
Hi,
How to access a file from external hard disc ?
for example from, "/media/ext_hdd/"
Mahesh
댓글 수: 0
답변 (2개)
Jan
2014년 1월 1일
This works directly, e.g.:
FID = fopen('/media/ext_hdd/YourFile.ext', 'r')
This works exactly as for files on the internal disk. So please explain, what you have tried and which problems occur.
댓글 수: 5
Walter Roberson
2021년 3월 24일
dir() does not use the search path. But you can use
projectdir = 'D:\AHN3\DSM05';
filelist = dir(projectdir);
Jan
2021년 3월 24일
It is a bad programming practize to call addpath to append a folder containing data files. Include only folders in the Matlab path, which contain your M-files.
To get a list of files:
filelist = dir('D:\AHN3\DSM05');
Larry B
2019년 5월 24일
I wanted to access data files on a external drive named "My Passport" in matlab using my MAC. The following is example of the path layout for the filename to make that happen:
fname ='/Volumes/My Passport/Tower_Collect/201808B.raw';
The data was successfully loaded and processed
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!