double timeseries データ の最終値を取得する

double timeseries データ の最終値(時間情報不要)を取得するにはどのようにすればよろしいでしょうか。
通常の end構文では処理出来ず躓いております。
サンプルファイルを添付いたしますので、ご回答頂けると幸いです。

 Réponse acceptée

Kenta
Kenta le 26 Août 2020

0 votes

data1=Teva.Data;
data1(end)
こんにちは、上のようにすればよいです。
また、変数の扱いが難しくうまくいかないときは、インターネットで調べると大体ヒットします。
例えば、timeseries data matlab と打つと
以下のようなtimeseries変数のデータの扱いが一番上に出てきました
参考になれば幸いです。

1 commentaire

Yuma Yamazaki
Yuma Yamazaki le 26 Août 2020
早速のご回答、感謝申し上げます。
問題も解決いたしましたし、大変参考になりました。
有難うございました。

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Produits

Version

R2016a

Community Treasure Hunt

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

Start Hunting!