How to save structue generated in a loop?

I need to save "St" that generated with in a loop, as St1, St2, St3... "St" looks like below. Also I need to load those St1, St2, St3.. in a program.
St =
R: [5x5 double]
df: 7
normr: 0.0799

1 Commento

"I need to save "St" that generated with in a loop, as St1, St2, St3..."
That is exactly what you should not do. Read this to know why:

Accedi per commentare.

Risposte (2)

Just use indexing:
for k = ...
S(k) = st
end
and you will get all of your data in one non-scalar structure.

Richiesto:

il 25 Lug 2018

Commentato:

il 27 Lug 2018

Community Treasure Hunt

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

Start Hunting!

Translated by