Saving outputs of a funtion inside nested for loop in organized fashion

1 回表示 (過去 30 日間)
Burke Morse
Burke Morse 2021 年 11 月 20 日
編集済み: Matt J 2021 年 11 月 21 日
I am trying to save the outputs of a function inside multiple for loops. I am changing the input to the function with each nested for loop. I cannot think of a good way to organize the data I am collecting.

回答 (1 件)

Matt J
Matt J 2021 年 11 月 21 日
編集済み: Matt J 2021 年 11 月 21 日
Instead of returning 20 separate outputs, you could have paramA return them as fields of a struct. Then you could save each output as an element of a struct array.

カテゴリ

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