Loading multiple files into matlab
古いコメントを表示
I have 36 different .mat files in a folder: AAG1,AAG2,AAG3...AAG36. Each file only contain one variable called 'GUD'
I want to load all the files and naming the variables so I can distinguish between them, like naming them AAG1,AAG2 in the script. I have tried the following:
But I do not know how I can seperate the variables from each other
filenames = {'AAG','AAG2','AAG3'};
for kk = 1:numel(filenames)
S = load(filenames{kk})
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!