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

조회 수: 5 (최근 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))

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by