Plot struct-data in loop

1 次查看(过去 30 天)
Rica
Rica 2017-7-20
评论: Rica 2017-8-1
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 个评论
Stephen23
Stephen23 2017-7-20
编辑:Stephen23 2017-7-20
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:

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by