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!