How to preallocate tables using the table-function???
이전 댓글 표시
Hi Guys,
according to the Matlab documentation for the 'table' function, it should be possible to preallocate tables using the following syntax:
T = table('Size',sz,'VariableTypes',varTypes)
Does anyone know which version of Matlab is required to use this syntax?
When I'm trying to use it, either in Matlab R2015a or R2016b, I'm getting the following error message.
t = table('Size', [2 2], 'VariableTypes', {'double', 'string'})
Error using table (line 281)
Invalid parameter name: Size.
Caused by:
You may have intended to create a table with one row from one or more variables that are character strings. Consider using cell arrays of strings rather
than character arrays. Alternatively, create a cell array with one row, and convert that to a table using CELL2TABLE.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Tables에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!