error using preallocation for table using size option in R2023b
조회 수: 2 (최근 30일)
이전 댓글 표시
h=table('Size',[ 2212 5],"VariableTypes",{'double','double','double','double','double'});
Error using table
You might have intended "VariableTypes" to specify a parameter name. However, the table constructor requires parameter names to be
specified as character vectors. Use table(..., VariableTypes=Value) or table(..., 'VariableTypes', Value) instead.
댓글 수: 0
채택된 답변
Dyuman Joshi
2024년 3월 23일
편집: Dyuman Joshi
2024년 3월 23일
Use single quotation marks around the VariableTypes arguement instead of double quotation marks -
% v v
h=table('Size',[2212 5],'VariableTypes',{'double','double','double','double','double'})
Reference - 2nd section of Description tab in the documentation of table - https://in.mathworks.com/help/matlab/ref/table.html#d126e1657554
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!