get
查询 timeseries
属性
说明
示例
显示属性
创建一个 timeseries
对象,并显示其属性。
ts = timeseries(rand(5,1)); tsinfo = get(ts)
tsinfo = struct with fields:
Events: []
Name: 'unnamed'
UserData: []
Data: [5x1 double]
DataInfo: [1x1 tsdata.datametadata]
Time: [5x1 double]
TimeInfo: [1x1 tsdata.timemetadata]
Quality: []
QualityInfo: [1x1 tsdata.qualmetadata]
IsTimeFirst: 1
TreatNaNasMissing: 1
Length: 5
仅显示 Length
属性。
tslength = get(ts,'Length')
tslength = 5
输入参数
ts
— 输入 timeseries
标量
输入 timeseries
,指定为标量。
数据类型: timeseries
propname
— 属性名称
字符向量
属性名,指定为字符向量。有关 timeseries
属性名称的完整列表,请参阅 timeseries
。
数据类型: 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)