How to record/run the result 100 times?

1 回表示 (過去 30 日間)
Haya Ali
Haya Ali 2021 年 1 月 25 日
編集済み: Haya Ali 2021 年 5 月 26 日
I need to record the error array 100 times (i.e. Errorx11_nz, Errory11_nz, Errorx21_nz, Errory21_nz). Then, I need to take their average and finally plot one figure using only the average result. Please help me, how can I record the error arrays hundered times?
  1 件のコメント
David Hill
David Hill 2021 年 1 月 25 日
Very confusing explanation. If you explained how you are generating your data it would be very helpful.

サインインしてコメントする。

採用された回答

waqas
waqas 2021 年 1 月 25 日
May be knowing what OMEGA is would help us understanding what the code is doing.
From current code, you can implement a second for loop which would run 100 times outside following loop.
for t= 1:100
count = 0;
for N_m=3:16
%YOUR CODE HERE which is in the for loop already
%FOR SAVING THE ARRAY 100 times
Errorx11_nz(t,count) = % expression that you have
%use the same for other errors that you have mentioned in the post
end
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by