How to plot two sets of differing variables under one figure?
1 view (last 30 days)
Show older comments
SYARIFUDDIN BAGINDA ALI
on 20 Oct 2015
Commented: Walter Roberson
on 20 Oct 2015
I have two sets of ECG variables;
X and Y as one set, X1 and Y1 as one set.
How do I plot them both in one Figure, with the first set of data above the second set of data?
0 Comments
Accepted Answer
Walter Roberson
on 20 Oct 2015
offset = abs(max(x)) * 1.1;
plot(x, y, 'b', x1, y1+offset, 'k')
2 Comments
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!