Effacer les filtres
Effacer les filtres

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

1 vue (au cours des 30 derniers jours)
Burke Morse
Burke Morse le 20 Nov 2021
Modifié(e) : Matt J le 21 Nov 2021
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.

Réponses (1)

Matt J
Matt J le 21 Nov 2021
Modifié(e) : Matt J le 21 Nov 2021
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.

Catégories

En savoir plus sur Problem-Based Optimization Setup dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by