Time series object の変換

14 次查看(过去 30 天)
Shohei Kanemitsu
Shohei Kanemitsu 2021-3-16
回答: Naoya 2021-3-18
etfe関数を使用したいのですが、引数がtime series objectにより実行できないようです。
time series objectを配列へ変換することはできますか?

采纳的回答

Naoya
Naoya 2021-3-18
timeseries には、 Time, Data に相当するプロパティがありますので
それぞれ次のコマンドで、 時間ベクトル、データベクトルとして得ることができます。
% timeseriesオブジェクト例の定義
ts3 = timeseries( sin(0:0.1:10)', [0:0.1:10]');
% 時間ベクトルを取得
t = ts3.Time;
% データベクトルの取得
data = ts3.Data;

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 時系列 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!