An automatic version of / alternative to, "ginput" ?

Hello,
I'm wondering is anyone aware of a way to automatically pass coordinates to "ginput", or declare the coordinates in my code and totally bypass the need for "ginput"?
I want to define the coordinates (which will always be the same)so I can use them as feature points to be compared against a database of images/arrays at the same points.
I hope this is clear, and apologies if it's been asked and answered before, but I couldn't find anything.
Garry

Answers (1)

Presumably the code has something like:
[x,y,button] = ginput
you can just replace this with
x = 1;
y = 2;
button = 1;
where x, y, and button are whatever you want them to be.

Categories

Asked:

on 24 Nov 2011

Community Treasure Hunt

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

Start Hunting!