MATLAB: Plot and scatter plot, weird lines removal plot Hi! I have a plot and another scatter plot in same window, but i get weird lines between the scatters. How can i remove those? My code is: plot(g,f), grid on, hold on scatter(g_v,f_v) xlabel('g(s)=c(s)*s') ylabel('f(s)=q*EBO(s)') Best Answer %f true plot(g,f,'+');Use a marker in the plot function By default plot uses a continous line Related SolutionsMATLAB: Background removal You could just blur the heck out of it with conv2(). Or else use the image to model a perfectly smooth function, like a quadratic or something. I used polyfitn for this but John removed it from the File Exchange. Maybe you could try this instead: http://www.mathworks.com/matlabcentral/fileexchange/13719-2d-weighted-polynomial-fitting-and-evaluation MATLAB: Line graphs and Scatter plots Hello, The command 'hold on' will retain the existing plots on axes.scatter()hold onplot() Related QuestionHow to make scatter plot graphsImage Background RemovalI need to plot a line in 3D scatter plotHow to plot scatter plotGeneral Handle Removal
Best Answer