Saving data after each iteration

10 ビュー (過去 30 日間)
Sydney Kehoe
Sydney Kehoe 2021 年 6 月 21 日
回答済み: Jonas 2021 年 6 月 21 日
Hey so I have a code that takes the mean of the data set from the file that I load, and there are about 80 different files and I want to save all the means from each iteration of the for loop into one big matrix (so eventually I can make a box plot from all the means from all the data sets). Is there any way I can do this? Thanks.

採用された回答

Jonas
Jonas 2021 年 6 月 21 日
something similar to
meanData=zeros(1,numel(fileList));
for fileNr=1:numel(fileList)
load(.....,myData);
meanData(fileNr)=mean(myData);
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by