How to flip sign in the X values, from time t=0 ?

3 views (last 30 days)
Lal
Lal on 8 Feb 2018
Commented: Lal on 8 Feb 2018
t X
-10 17
-9 76
-8 76
-7 76
-6 76
-5 78
-4 76
-3 70
-2 76
-1 76
0 74
1 76
2 76
3 76
4 76
5 76
6 76
7 76
8 76
9 76
10 76

Accepted Answer

Pawel Jastrzebski
Pawel Jastrzebski on 8 Feb 2018
Flip sign as in changing from positive to negative?
x(t>0) = -x(t>0)
  1 Comment
Lal
Lal on 8 Feb 2018
Thank you for your quick response. It worked.

Sign in to comment.

More Answers (1)

Birdman
Birdman on 8 Feb 2018
Edited: Birdman on 8 Feb 2018
If you want to plot from t=0, then
plot(t(t>=0),X(t>=0))

Tags

Community Treasure Hunt

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

Start Hunting!