# MATLAB: How to plot separate graphs

plot graphs

I have plotted a few graphs in different sections of my scripts, however when I run the m-file it will only show the last graph, I have to run it section by section in order to get all the graphs. How can I get all the graphs after I hit the run button? p.s. I am new to matlab so please explain with simple language, thank you for the help!

figure(1)plot(a,b)gridfigure(2)plot(c,d)grid