Version (853 Bytes) von Mukhtar Ullah
Finds points on the plot nearest to the mouse click.
Aktualisiert 28. Dez 2004

Keine Lizenz

GINPUTPLOT finds points on the 2-D plot nearest to the mouse click

[XI,YI] = GINPUTPLOT(N) gets N points from the current axes and
returns the nearest points on the plot of Y versus X, in length N
vectors XI and YI, where X and Y are respectively 'XData' and 'YData'
properties of all childern objects in the current axes.

[XI,YI] = GINPUTPLOT gathers an unlimited number of points until
the return key is pressed.

GINPUTPLOT(H,N) and GINPUTPLOT(H) does the same as GINPUTPLOT(N) and
GINPUTPLOT for objects with handles H.


[t,Y] = ode23(@lotka,[0 5],[20 20]');
[xi,yi] = ginputplot

If any suggestions/improvements/entensions, please let me know.

Zitieren als

Mukhtar Ullah (2024). GINPUTPLOT (, MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R14
Kompatibel mit allen Versionen
Windows macOS Linux
Mehr zu Visual Exploration finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise

mistakenly another file was added last time. now it's correct.