MATLAB: How to plot fewer marker

matl

Capture.PNG
plot(VarName10, VarName9,'Marker','*','MarkerIndices',1:100:length(VarName9));
I tried this but it shows error
Error using plot
Invalid property found.
Object Name: line
Property Name: 'MarkerIndices'.
How to do that?
Thanks in advance!

Best Answer

Hi,
Can't you just delete a few data from VarName10?
You can write a simple code like this
VarNamePlot = VarName10;
m = length(VarNamePlot);
index = [1:m]
OddIndices = index(rem(index,2) == 1)
VarNamePlot10 = VarName10(OddIndices);
VarnamePlot9 = VarName9(OddIndices);
And then use VarNamePlot to plot . This will reduce the number of points to plot.
Or just use
plot(VarName10, VarName9, '*')
Related Question