Loading multiple mat files
Afficher commentaires plus anciens
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 commentaire
Ewunate Assaye Kassaw
le 3 Août 2020
Thanks
Réponse acceptée
Plus de réponses (1)
ELCIO S
le 30 Oct 2018
1 vote
What about if I have many files with different names? How can I do to load all of them?
1 commentaire
"What about if I have many files with different names? How can I do to load all of them?"
Use DIR or SPRINTF:
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!