How to show 'Marker symbol' for specific values on 2D-plot?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vuong Hoang
el 27 de Abr. de 2018
Respondida: Walter Roberson
el 27 de Abr. de 2018
In a plot of x (array with 6000 values) and f(x) (also array with 6000 values) I want to show 'Marker symbol' for specific values on 2D-plot? for example, show Marker symbol for f(x) at x(1000) or 2000,3000,4000,...on f(x) plot.
0 comentarios
Respuesta aceptada
Walter Roberson
el 27 de Abr. de 2018
With newer MATLAB you can use the MarkerIndices property; see https://www.mathworks.com/help/matlab/creating_plots/create-line-plot-with-markers.html#bvcbmlx-1
0 comentarios
Más respuestas (1)
KSSV
el 27 de Abr. de 2018
x = linspace(0,2*pi,6000) ;
y = sin(x) ;
figure
hold on
plot(x,y)
idx = 1:1000:length(x) ;
plot(x(idx),y(idx),'s','markersize',10)
0 comentarios
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!