Non uniform circle marks on line plot
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a line plot. I need to mark circles on it non-uniformly such that frequency of circles are more in the starting few points and less after that. Currently, I am doing it uniformly as: plot(t(1:200:2001),data(1,1:200:2001), '-o');
0 comentarios
Respuestas (1)
Steven Lord
el 16 de Ag. de 2018
2 comentarios
Steven Lord
el 16 de Ag. de 2018
The code below plots markers at 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100. If that's not what you mean by "non-uniform points", please clarify exactly what you mean when you use that term.
x = 1:100;
y = x.^2;
plot(x, y, '-o', 'MarkerIndices', (1:10).^2)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!