필터 지우기
필터 지우기

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:
Rica
Rica 2017년 8월 1일
Thank You

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by