Loading multiple mat files
이전 댓글 표시
Hello everyone, i want to load this 3 set of data files into matlab using for loop but it is not working for me. Any help...............
clear all;
close all;
clc;
datafile={'data1.mat' 'data2.mat' 'data3.mat'};
num_schemes=3;
for sno=1:num_schemes
files = char(data(sno));
load files
end
채택된 답변
추가 답변 (1개)
ELCIO S
2018년 10월 30일
1 개 추천
What about if I have many files with different names? How can I do to load all of them?
댓글 수: 1
"What about if I have many files with different names? How can I do to load all of them?"
Use DIR or SPRINTF:
카테고리
도움말 센터 및 File Exchange에서 File Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!