MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

DimensionNames: {'Row' 'Variables'}
VariableNames: {1x6 cell}
VariableDescriptions: {}
VariableUnits: {}
VariableContinuity: []
RowNames: {}
CustomProperties: No custom properties are set.
Use addprop and rmprop to modify CustomProperties.


To add custom properties, use the addprop function. Specify the names of the properties.
For each property, also specify whether it has metadata for the whole table (similar to the
Description property) or for its variables (similar to the VariableNames property). If
the property has variable metadata, then its value must be a vector whose length is equal
to the number of variables.


Add custom properties that contain an output file name, file type, and indicators of which
variables to plot. Best practice is to assign the input table as the output argument of
addprop, so that the custom properties are part of the same table. Specify that the
output file name and file type are table metadata using the 'table' option. Specify that
the plot indicators are variable metadata using the 'variable' option.


T = addprop(T,{'OutputFileName','OutputFileType','ToPlot'}, ...
{'table','table','variable'});
T.Properties


ans =
TableProperties with properties:


Description: ''
UserData: []
DimensionNames: {'Row' 'Variables'}
VariableNames: {1x6 cell}
VariableDescriptions: {}
VariableUnits: {}
VariableContinuity: []
RowNames: {}


Custom Properties (access using t.Properties.CustomProperties.):
OutputFileName: []
OutputFileType: []
ToPlot: []


Add Custom Properties to Tables and Timetables
Free download pdf