Time series object の変換

조회 수: 26 (최근 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!