MATLAB: How to include more asterisks on a line in a plot

linestylesMATLABplot

I have a plot:
plot(time, y,'b-*')
The line that it plots has asterisks at each of my data points. Is there a way to include more asterisks along the line without having to include more data points?
Thanks

Best Answer

Not that I’m aware of. Markers are plotted at specific (x,y) coordinates, according to the ‘Line Properties’ documentation. The 'LineStyle' option offers lines or lines and markers (or none), but not continuous markers.
The easiest way to create more data points is to use interp1 with the 'linear' (default method) option.