MATLAB: Is there a difference between plot(x,y,’x’) and scatter(x,y,’x’) MATLABplot.scatter Is there a difference between plot(x,y,'x') and scatter(x,y,'x')? Best Answer Like you can see the result is the same, but the two functions plot and scatter are different Related SolutionsMATLAB: What is differance between plot of a function and ezpolt of a function?And how can we achieve same plot by these two The main difference isezplot accepts a function as inputplot accepts (x,y) data and plots itHave you carefully read the documentation for these two functions? MATLAB: Animated X, Y scatter plot Have you tried to look at scatter? That should let you do this simply like this:for i1 = 1:10:(numpoints-10), plot(xP(1:i1-1),yP(1:i1-1),'w.','markersize',18) hold on scatter(xP(i1+(0:9)),yP(i1+(0:9)),32,zP(i1+(0:9)),'filled') axis([xMin, xMax, yMin, yMax]) caxis([zMin, zMax]) drawnowendHTH Related QuestionCan’t plot functionAppending data to scatter(x,y)Plotting the dataExtract X,Y data from scatter plotPlotting an equation at different XWont this script plot a graph? the plot shows up empty on the interval 0 – .9, 0 – 1Scatter 3y-axis
Best Answer