i want to plot cos(x) and sin(x) in the same figure, i have two ways :i can write for example :X=0:pi,Y=cos(X);Z=sin(X);Plot(X,Y,X,Z)or the second way :X=0:pi;Y=cos(X);Z=sin(Z);Plot(X,Y)Hold onPlot(X,Z)what is the difference between these two ways ?
MATLAB: What is the difference between hold and plot of two curves in the same figure
graphgraphicsplotsplotting
Best Answer