There i want to produce two graphs at different instances.
How to get mat lab to show multiple plots.
I dont want both graphs in same window using subplot.
Then reset the hold state to off.
I use multiple colors here to.
Is it possible in matlab.
By default new plots clear existing plots and reset axes properties such as the title.
However you can use the hold on command to combine multiple plots in the same axes.
I cant figure out how to get multiple plots because it is generating plot of last command only.
I want both to be displayed in separate window.
By default new plots clear existing plots and reset axes properties such as the title.
I use a matlab program for my project.
But the second graph replaces the 1st graph when that command is executed.
They are all graphs.
For example plot two lines and a scatter plot.
How would i put them all on one script and have all plots displayed as separate figures.
However you can use the hold on command to combine multiple plots in the same axes.
For example plot two lines and a scatter plot.
Then reset the hold state to off.
Bt it is giving the 2nd one only.
Next we create a figure window with figure function and immediately after we use the command hold on this tells matlab to put all of the plots from this point forward into the current figure window.
In the code we first create a vector for x and evaluate the three functions we wish to plot.
I want another graph of a on x axis and c on y axis likewise c on x axis and b on y axis.