Plotting multiple .dat files in Matlab

17 ビュー (過去 30 日間)
Mohsin Javaid
Mohsin Javaid 2016 年 10 月 15 日
回答済み: KSSV 2016 年 10 月 15 日
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

採用された回答

KSSV
KSSV 2016 年 10 月 15 日
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 件)

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by