how to plot fewer marker ?

40 visualizaciones (últimos 30 días)
Umang Dongre
Umang Dongre el 14 de Mzo. de 2019
Comentada: li weilin el 8 de Feb. de 2020
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!

Respuesta aceptada

Raghunandan V
Raghunandan V el 14 de Mzo. de 2019
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, '*')
  2 comentarios
Umang Dongre
Umang Dongre el 15 de Mzo. de 2019
yes I did,
plot(VarName10, VarName9, 'Marker', '*')
but I want to increce spacing in between them.
Raghunandan V
Raghunandan V el 15 de Mzo. de 2019
Oh... In that case you have to zoom in the graph.you cant do it here programatically.

Iniciar sesión para comentar.

Más respuestas (1)

Steven Lord
Steven Lord el 15 de Mzo. de 2019
The MarkerIndices property was introduced in release R2016b. If you're using an older release, consider upgrading to R2016b or a later release.
  1 comentario
li weilin
li weilin el 8 de Feb. de 2020
You are right! Give beer to you if you are beside me.

Iniciar sesión para comentar.

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by