Plotting multiple .dat files in Matlab
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohsin Javaid
am 15 Okt. 2016
Beantwortet: KSSV
am 15 Okt. 2016
Hi guys.
I have multiple .dat files and I want to plot them on a single plot in matlab. I have a matlab function that can plot one file. Is there any way that I can combine all .dat file to make one dataset and then plot it.
Any help would be appreciated.
Regards
0 Kommentare
Akzeptierte Antwort
KSSV
am 15 Okt. 2016
You can load the dat files one by one plot each file and use hold on..you can load the dat files as below:
d = dir('*.dat');
nfiles = length(d);
for k = 1:nfiles
load d(k).name;
% get your variables, plot
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!