How can I offset time and displacement at the end of a defined time?

4 ビュー (過去 30 日間)
mehtap agirsoy
mehtap agirsoy 2021 年 3 月 28 日
コメント済み: mehtap agirsoy 2021 年 3 月 31 日
I'd like to offset time and displacement up to 60 secs in my data but couldn't figure it out.

回答 (1 件)

Mathieu NOE
Mathieu NOE 2021 年 3 月 29 日
hello
you can simply add 60 (or any value ) to your time vector (assuming you have defined one) :
plot(time+60,data)
  5 件のコメント
Mathieu NOE
Mathieu NOE 2021 年 3 月 30 日
ok
so if your time vector start with initial value time(1) = 60 s
and the y first value is y(1)
what you want to plot is :
plot(time-time(1),y-y(1))
mehtap agirsoy
mehtap agirsoy 2021 年 3 月 31 日
thanks a lot

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSources についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by