get
查询 tscollection
属性
说明
示例
显示属性
使用两个 timeseries
对象创建一个 tscollection
对象并显示其属性。
ts1 = timeseries(rand(5,1),'Name','ts1'); ts2 = timeseries(rand(5,1),'Name','ts2'); tsc = tscollection({ts1,ts2}); tscinfo = get(tsc)
tscinfo = struct with fields:
Name: 'unnamed'
Time: [5x1 double]
TimeInfo: [1x1 tsdata.timemetadata]
Length: 5
ts1: [1x1 timeseries]
ts2: [1x1 timeseries]
仅显示 Length
属性。
tsclength = get(tsc,'Length')
tsclength = 5
输入参数
tsc
— 输入 tscollection
标量
输入 tscollection
,指定为标量。
propname
— 属性名称
字符向量
属性名,指定为字符向量。有关 tscollection
属性名称的完整列表,请参阅 tscollection
。
数据类型: char
版本历史记录
在 R2006a 之前推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)