MATLAB: How i can plot two graphs in one figure

plot

tell me about the simplest commnd to plot the two graphs in one figure.

Best Answer

See https://www.mathworks.com/help/matlab/ref/hold.html , the command would be hold on
% an example
plot(1:10)
hold on
plot((1:10).^2)
Screen Shot 2018-12-30 at 12.40.17 AM.png