Plot struct-data in loop

2 visualizzazioni (ultimi 30 giorni)
Rica
Rica il 20 Lug 2017
Commentato: Rica il 1 Ago 2017
Hi, i have struct data: data_1, data_2.....data_100 iwant to make the following plot in a loop:
for k=1:100
plot(data_k.a,data_k.b)
end
how could i do this in matlab?
  6 Commenti
Stephen23
Stephen23 il 20 Lug 2017
Modificato: Stephen23 il 20 Lug 2017
Aha... so someone put meta-data into structure names, and now this makes the saved data harder to process. Not very surprising. This is why meta-data does not belong in variable names:
Rica
Rica il 1 Ago 2017
Thank You

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Structures in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by