matlab table selecting values
이전 댓글 표시
i want to use a for loop to go through the values in a table with 10 rows and 1 column one by one. so far my code reads the whole table at the same time
thanks
채택된 답변
추가 답변 (1개)
Tala
2021년 5월 8일
I am not sure what do you mean by go through the values. This should solve your problem you:
myCell = {1; 2; 3;4;5;6;7;8;9;10};
for i=1:height(myCell)
D=myCell{i};
display(D)
end
댓글 수: 3
Emily Platt
2021년 5월 8일
Tala
2021년 5월 8일
This is what I see, running the code I posted. I see one value at a time. I might be missing something tho!
Can you give me an example? What do you expect to see?

Image Analyst
2021년 5월 8일
She wants a table, not a cell array.
카테고리
도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!