You can be explicit that you want to change the Marker property of the line created by plot.
x = 1:10;
y = x.^2;
figure
plot(x, y, '-', 'Marker', 'o')
figure
plot(x, y, '-', 'Marker', '.')
You can specify any of the modifiable properties of the line returned by plot in this way. If you want to be completely explicitly clear, you could use both LineStyle and Marker. figure
plot(x, y, 'Marker', '.', 'LineStyle', '-')
Best Answer