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일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

태그

질문:

2016년 10월 15일

답변:

2016년 10월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by