MATLAB: Any way to plot scatter-line with different symbol scatter-line with different symbol is there anyway to draw a scatter-line figure with different symbol like below: Thanks! Yu Best Answer To reproduce that figure, try this: x = 1:6;y = 1:6;figureplot(x(1:4), y(1:4), '-ok', 'MarkerFaceColor','k')hold onplot(x(4:5), y(4:5), '-k')plot(x(5:6), y(5:6), '-ok', 'MarkerFaceColor','w')hold offaxis([0 7 0 7])EDIT — Added plot image: Experiment to get the result you want. Related SolutionsMATLAB: How to do scatter plot with markers with dashed outlines Given the documentation found at scatter, drawing a marker with a dashed outline does not seem to be supported. MATLAB: How to change color for one point in the scatter plot a=[1:10]'; b=[11:20]';scatter(a,b,'o','filled');hold onplot(a(5),b(5),'ro','MarkerFaceColor','r') Related QuestionPlot a line and point marker with color unspecifiedMake certain plot markers invisibleI need to plot a line in 3D scatter plotLegend for scatter plot has lines through markersHow to make ‘.’ Markers transparent in a Scatter plotPlotyy with extra markers
Best Answer