필터 지우기
필터 지우기

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?

채택된 답변

Walter Roberson
Walter Roberson 2020년 7월 2일
  댓글 수: 2
Jeff Miller
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 CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by