MATLAB 帮助中心
tscollection 中的 timeseries 的名称
tscollection
timeseries
tsnames = gettimeseriesnames(tsc)
tsnames = gettimeseriesnames(tsc) 返回一个字符向量元胞数组,这些字符向量包含 tscollection 对象 tsc 中的 timeseries 对象的名称。
tsc
示例
全部折叠
使用两个 timeseries 对象创建一个 tscollection 对象。然后显示 tscollection 中的 timeseries 的名称。
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'); tsc = tscollection({ts1;ts2}); tsnames = gettimeseriesnames(tsc)
tsnames = 1×2 cell {'Acceleration'} {'Speed'}
输入 tscollection,指定为标量。
在 R2006a 之前推出
timeseries | tscollection
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处