Borrar filtros
Borrar filtros

Draw points in axes matlab

10 visualizaciones (últimos 30 días)
zeyneb khalili
zeyneb khalili el 30 de Nov. de 2018
Comentada: Adam Danz el 30 de Nov. de 2018
how can i manually draw points in axes matlab 2009

Respuesta aceptada

Adam Danz
Adam Danz el 30 de Nov. de 2018
Editada: Adam Danz el 30 de Nov. de 2018
It depends what you mean by "manually".
Mouse clicks
Use getpts().
figure;
axh = axes;
[x,y] = getpts(axh); %Click on axis; Enter/Return to finish.
plot(axh, x, y, 'kx')
Command line
From the command line;
plot(0.5, 0.2, 'kx') %plots a black x at (0.5, 0.2).
  2 comentarios
zeyneb khalili
zeyneb khalili el 30 de Nov. de 2018
Thank you so much @Adam Danz
Adam Danz
Adam Danz el 30 de Nov. de 2018
No problem!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by