How to plot multiple data sets on the same graph
3 views (last 30 days)
Show older comments
The following coding is only plotting the first two variables on the plot.
plot(years,run_rate,'r-s',years,CL,'g-',years,UCL,'g-',years,LCL,'g-');
0 Comments
Accepted Answer
Birdman
on 9 Dec 2017
Use hold on command between. For instance:
plot(years,run_rate,'r-s');hold on;plot(years,CL,'g-');hold on;plot(years,UCL,'g-');hold on;plot(years,LCL,'g-')
5 Comments
Birdman
on 9 Dec 2017
Can you accept the answer so that other people having the same problem will know there is a working solution.
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!