MATLAB Answers

Plot struct-data in loop

6 views (last 30 days)
Rica on 20 Jul 2017
Commented: Rica on 1 Aug 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
how could i do this in matlab?


Show 3 older comments
Rica on 20 Jul 2017
Thanks Stephen! Yes it is requirde and it does work for my case. I have diffrent struct with diffrent names. So i tried to collect the interessting data in an Array.
Stephen Cobeldick
Stephen Cobeldick on 20 Jul 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 on 1 Aug 2017
Thank You

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by