extract from different .mat file to plot
1 回表示 (過去 30 日間)
古いコメントを表示
I have a bunch of data in abc_001a01.mat,abc_002a01.mat,abc_001b02.mat and a few more which start with abc. I would like to extract variable N from each .mat and plot it into a graph without manually key in load('abc_001a01.mat'); load('abc_002a01.mat') and so on. Can anyone give me a clu how to start the coding? I am a beginner so please make it easy to understand
Thanks Dav
0 件のコメント
回答 (2 件)
Thomas
2013 年 2 月 13 日
A small example is here: http://stackoverflow.com/questions/10668362/how-i-read-mat-format-files-from-folder-in-matlab
Another example is here: http://stackoverflow.com/questions/11498116/load-multiple-mat-files-to-matlab-workspace
0 件のコメント
Azzi Abdelmalek
2013 年 2 月 13 日
% all your mat-files starting with abc
f=dir('abc*.mat')
filename={f.name} % all your mat-files starting with abc
To read a mat-file
k=1
N=load(filename{k})
N=N.N
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Workspace Variables and MAT-Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!