MATLAB 帮助中心
从 tscollection 中删除 timeseries
tscollection
timeseries
tscout = removets(tscin,tsname)
tscout = removets(tscin,tsname) 从 tscollection 对象中删除名为 tsname 的 timeseries 对象。tsname 可以是单个字符向量或字符向量元胞数组。
tscin
tsname
示例
全部折叠
使用两个 timeseries 对象创建一个 tscollection 对象。然后,从 tscollection 中删除名为 Speed 的 timeseries。
Speed
ts1 = timeseries([1.1 2.9 3.7 4.0 3.0]',1:5,... 'Name','Acceleration'); ts2 = timeseries([3.2 4.2 6.2 8.5 1.1]',1:5,... 'Name','Speed'); tscin = tscollection({ts1;ts2}); tscout = removets(tscin,'Speed')
Time Series Collection Object: unnamed Time vector characteristics Start time 1 seconds End time 5 seconds Member Time Series Objects: Acceleration
输入 tscollection,指定为标量。
timeseries 名称,指定为字符向量或字符向量元胞数组。
在 R2006a 之前推出
timeseries | addts | tscollection
addts
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处