Reduce number of Markers on existing Matlab Figure

Illustration
johnconnor - 2020-08-05T11:10:10+00:00
Question: Reduce number of Markers on existing Matlab Figure

I have an existing set of figures that I cannot quickly and easily regenerate the plots for since they are created by different set of functions. There are a set of a thousand points that each show a marker, it is too dense as is, is there a way to reduce the number of markers on a plot without having to regenerate it.

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

I figured it out.
Open the figure, go to Edit->Figure Properties
Click on the plot line you wish to edit the marker spacing.
Then go down to the 'Marker' option on the Property Inspector.
In the MarkerIndices box, it may say something to the effect of "1x1001 unit64"
You can create a vector here to modify the spacing.
In my case I wanted to have a marker every 50 points, so I entered [1:50:1000] into the MarkerIndices box, which solved my issue.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!