Bug or Normal behavior in Table variable Types?
이전 댓글 표시
I am defining a table variable as having class "cellstr".
But if (for reasons specific to the project) the first row is not filled and the second row is filled first, Matlab seems to insert a 'double' in the 1st line cell that is previously defined as "cellstr".
See simplified example below. Shouldn't the empty row (1st row) in the table be filled with 0x0 char rather than 0x0 double?
Is this a bug or am I missing something in the way Matlab assigns default emtpty values?
myTable = table('Size',[0,1],'VariableNames',{'Var1'},'VariableTypes',{'cellstr'})
summary(myTable)
myTable.Var1{2} = 'Char Vector'
class(myTable.Var1{1})
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!