MATLAB: How to add legends

legend

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

Best Answer

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');