帮助中心帮助中心
从表或时间表中删除自定义属性
t = rmprop(t,propertyNames)
例子
t = rmprop(t,,,,属性名称)删除包含从表或时间表的自定义元数据的属性t。输入参数属性名称指定属性的名称。
t = rmprop(t,,,,属性名称)
t
属性名称
全部收缩
将包含自定义元数据的属性添加到表中。然后删除一些属性。
首先,将湿度和空气质量的测量读取到桌子上。显示前三行。
t =可读取('indoors.csv');头(T,3)
ans =3×3桌时间湿度空气___________________ ___________________ 2015-11-15 00:24 36 80 2015-11-15 01:13:35 36 80 2015-11-15 02:26:47 37 37 79 79
使用该自定义元数据添加属性AddProp功能。然后将元数据分配给这些属性。
AddProp
t = addprop(t,{'乐器',,,,'精确',,,,'源文件'},{'多变的',,,,'多变的',,,,'桌子'});t.properties.customproperties.insportiment = [“钟”“湿度计”“空气质量计”];t.properties.customproperties.precision = [Nan 0.5 0.1];T. Properties
ans = TableProperties with properties: Description: '' UserData: [] DimensionNames: {'Row' 'Variables'} VariableNames: {'Time' 'Humidity' 'AirQuality'} VariableDescriptions: {} VariableUnits: {} VariableContinuity: [] RowNames:{}自定义属性(使用t.properties.customproperties访问。):sourcefile:[]仪器:[“时钟”“湿度计”“ hygrometer”“ air质量仪表”]精度:[NAN 0.5000 0.1000]
要删除属性,请使用rmprop功能。您唯一可以删除的属性是您先前使用的自定义属性AddProp。您无法删除其他属性T. Properties,尽管您可以删除它们所包含的值。
rmprop
T. Properties
去除乐器和源文件来自t.properties.customproperties。
乐器
源文件
t.properties.customproperties
t = rmprop(t,{'乐器',,,,'源文件'});T. Properties
ans = TableProperties with properties: Description: '' UserData: [] DimensionNames: {'Row' 'Variables'} VariableNames: {'Time' 'Humidity' 'AirQuality'} VariableDescriptions: {} VariableUnits: {} VariableContinuity: [] RowNames:{}自定义属性(使用t.properties.customproperties访问。):精确:[NAN 0.5000 0.1000]
输入表,指定为表或时间表。
图案
自定义属性的名称,指定为字符串数组,字符向量,字符向量的单元格数组或图案标量。
用法注释和限制:
这属性名称输入参数不支持模式表达式。万博1manbetx
有关更多信息,请参阅高阵列。
桌子|时间表|概括|AddProp
桌子
时间表
概括
Sie HabenEineGeänderte版本死亡。möchtensie dieses beispiel mit ihrenänderungenÖffnen?
Sie Haben Auf Einen Link Geklickt,der Diesem matlab-befehl ientspricht:
führensie den befehl durch eingabe在das matlab-befehlsfenster aus中。webbrowserunterstützenkeine matlab-befehle。
选择一个网站以获取可用的翻译内容,并查看本地事件和优惠。根据您的位置,我们建议您选择:。
您还可以从以下列表中选择一个网站:
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
联系您当地的办公室