The variable names in a table should show up in a fieldnames(tbl) call on a table. So should Properties, plus the two dimensions, but name. But the "internal" DimensionNames, RowNames, VariableNames, and VariableValues should not, at least not directly; they should be in a Properties field.
Looks like table needs to override fieldnames for this.
>> foo = 42; bar = 'hello'; baz = 123.456;
>> tbl = table (foo, bar, baz)
tbl =
table: 1 rows x 3 variables
VariableNames: foo, bar, baz
>> fieldnames(tbl)
ans =
{
[1,1] = DimensionNames
[2,1] = RowNames
[3,1] = VariableNames
[4,1] = VariableValues
}
>>
The variable names in a table should show up in a
fieldnames(tbl)
call on atable
. So shouldProperties
, plus the two dimensions, but name. But the "internal" DimensionNames, RowNames, VariableNames, and VariableValues should not, at least not directly; they should be in a Properties field.Looks like table needs to override
fieldnames
for this.