Main Content

get

tscollection プロパティのクエリ

説明

tscinfo = get(tsc) は、tscollection オブジェクト tsc のすべてのプロパティを返します。

tscinfo = get(tsc,propname) は、プロパティ propname の値を返します。tscollection プロパティ名の完全な一覧については、tscollection を参照してください。

すべて折りたたむ

2 つの 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

入力引数

すべて折りたたむ

入力 tscollection。スカラーとして指定します。

プロパティ名。文字ベクトルとして指定します。tscollection プロパティ名の完全な一覧については、tscollection を参照してください。

データ型: char

バージョン履歴

R2006a より前に導入