I have a number (n) of mat files saved in one folder, their names are :
data1.mat, data2.mat, data3.mat, data4.mat, data5.mat,……
assume that each mat file has these vectors: t , x, y.
I want to plot t vs. y (saved in the same mat file) in one figure from all these files using for loop in a manner like this|
plot(t,y)---from data1.mathold onplot(t,y)---from data2.matplot(t,y)---from data3.mat...plot(t,y)---from datan.mat
Best Answer