Marker indices for a plot error
29 views (last 30 days)
So for whatever reason matlab will not allow me to make a marker index of less then 1. I get an error of
"Value must be a vector of positive integers."
I dont understand the problem. The plot has an x axis scale of very small numbers like .00001-.0001
So naturally my markers must be in that range.
Does anyone know why im getting this error?
the cyclist on 15 Aug 2021
The MarkerIndices Name-Value pair is expecting the indices of the data points (e.g. the 1st, 5th, and 10th data point) to place the markers, not the values of those data points.
You might want to use the XTick property of the axes instead.