Loading multiple mat files
Mostra commenti meno recenti
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 Commento
Ewunate Assaye Kassaw
il 3 Ago 2020
Thanks
Risposta accettata
Più risposte (1)
ELCIO S
il 30 Ott 2018
1 voto
What about if I have many files with different names? How can I do to load all of them?
1 Commento
"What about if I have many files with different names? How can I do to load all of them?"
Use DIR or SPRINTF:
Categorie
Scopri di più su File Operations in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!