フィルターのクリア

How to update file names and save file contents in workspace.

2 ビュー (過去 30 日間)
hosse
hosse 2015 年 12 月 22 日
編集済み: Stephen23 2019 年 6 月 19 日
Hello, I want to get output like this and save the each variable (a1, a2, ....) in the workspace individually with name a1, a2,...... for further analysis,
a1= Y(:,:,1);
a2= Y(:,:,2);
a3= Y(:,:,3);
............
an= Y(:,:,4);
Why the all variables ((a1, a2, ....) are not saved in the workspace-rather than erased. Got only the last variable. Moreover, name of the variable is also not updated as 'an'
Code:
for i = 1:43
j = 'a';
b= [j num2str(i)];
b = Y(:,:,i);
end

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 12 月 22 日

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by