How can I sum up several step plots into one plot?

4 views (last 30 days)
My program has several step plots(yaxis-power consumed) with overlapping time ranges. I need to put them together to see which time instant consumes the maximum combined power. Please help.
  5 Comments
dpb
dpb on 20 Aug 2014
If the signals are overlaid on a common time frame (and you can interpolate to do that without changing the shape if the breakpoints are given explicitly in the time series) then it appears you're just looking for
S=max(s1,s2);
for the two (or more) signals.
Kaushika
Kaushika on 21 Aug 2014
Edited: Kaushika on 25 Aug 2014
Thanks for all your reply. It was very useful. I got it done using interp1 and sychronize

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!