Open mat files
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi I have 6 different mat files in the C directory of my PC, how can I open them through a for loop and use them as an input to some other function?
Thanks.
댓글 수: 0
답변 (1개)
Jan
2012년 2월 1일
It depends on the names of the files and the data they contain. Example:
for i = 1:6
name = sprintf('C:\file%d.mat', i);
data = load(name);
yourfunction(data.values);
end
But this is only a bold guess. Please explain any details, if you need a more exact explanation.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!