how to add legends?

I want to merge 3 plots into one..how can i do that

 Accepted Answer

M
M on 29 Mar 2012
You can also use the following:
hold on %after the first plot to continue plotting on the same figure
legend on
% or legend('plot1','plot2','plot3');

More Answers (1)

doc subplot
doc legend

Tags

Asked:

on 29 Mar 2012

Community Treasure Hunt

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

Start Hunting!