How do I create a table that I don't now the size of ahead of time?
조회 수: 8 (최근 30일)
이전 댓글 표시
I'd like to creat a table for which I know the number of columns/variable names. However, I don't know how big (how many rows) it needs to be ahead of time and want the number of rows to increase as data is stored in it. Is this possilbe?
댓글 수: 0
채택된 답변
Walter Roberson
2020년 7월 2일
댓글 수: 2
Jeff Miller
2020년 7월 3일
Just a comment that I found this pretty slow, in case speed is an issue for you. In my case, it was much faster to accumulate the variables as separate vectors and assemble them into a table after they reached their final sizes.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Tables에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!