How to shift my data in Y direction ?

1 view (last 30 days)
Amneh Alshawabka
Amneh Alshawabka on 23 Apr 2019
Commented: Walter Roberson on 23 Apr 2019
How I can shift the red coloerd data or the black coloerd data in the image below thus both are starting at same points in the y dierction so I will be able to compare the data?
Any suggestion? Please!!!
  2 Comments
Walter Roberson
Walter Roberson on 23 Apr 2019
minred = min(red_data);
minblack = min(black_data);
base = min(minred, minblack);
plot(time, red_data - base, 'r', time, black_data - base, 'k')

Sign in to comment.

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!