필터 지우기
필터 지우기

Does adding variables to table cause Matlab to re-write the entire table in memory?

조회 수: 1 (최근 30일)
If I add columns/variables to a table that already exists, is the entire table rewritten to memory like a matrix is when adding an element outside of the existing matrix size?

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 31일
No. Internally, tables have a cell array with one cell entry for each variable. The cell array would have to be extended, but that is a relatively inexpensive operation (the cell contents do not have to be copied, just the pointers to the entries.)
Now, adding new rows on the other hand requires rewriting each cell array member.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by