How to store value in the table using looping
이전 댓글 표시
Hi,
I want to store data in a table using looping. I am trying to store all the value of each iteration in the table but it can only store the values of the last iteration. The coding below is what I tried.
for n = 1:3
Table.Data_A = DataA;
Table.Data_B = DataB;
Table.Data_C = DataC;
Table(n,;) = Table;
end
I will appreciate if someone can help me.
Thank you.
채택된 답변
추가 답변 (1개)
Yew Jen Chong
2022년 6월 23일
0 개 추천
댓글 수: 1
Karim
2022년 6월 23일
see the changes to the original answer, you can comment there ;) No need to create a new 'answer'
카테고리
도움말 센터 및 File Exchange에서 Time Series Events에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

