フィルターのクリア

storing data from nested for loop

1 回表示 (過去 30 日間)
Mos_bad
Mos_bad 2019 年 9 月 5 日
コメント済み: Raj 2019 年 9 月 7 日
I'm having hard time to save RndmVarInput including IM, z50Final, Mat, and tYear, and scenario iteration number from the nested for loop below. tYear is 1by3 ; z50Final is 10by1; IM is 1by10; Mat is 10by3; would you please help me out how to save it in big matrrix or cell array.
Nrt=3;
Nsnro=1000;
lhsN=10;
for scenario=1:Nsnro
tYear=PoisProcs(Nrt);
for i=1:Nrt
z50Final=LHS_TimDepScour(lhsN,tYear);
IM=LHS_seismic_hazard(lhsN);
Mat = LHS_Materials(lhsN);
for j=1:lhsN
SD = z50Final(j);
IM_PGA = IM(j);
mat_var = Mat(j, :)';
end
end
end
  1 件のコメント
Raj
Raj 2019 年 9 月 7 日
You have to follow the similar approach as suggested earlier here:
Where are you having problem?

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

回答 (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