Draw points in axes matlab

10 次查看(过去 30 天)
how can i manually draw points in axes matlab 2009

采纳的回答

Adam Danz
Adam Danz 2018-11-30
编辑:Adam Danz 2018-11-30
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).

更多回答(0 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by