# Doug's MATLAB Video Tutorials

## December 26th, 2007

This is the next in a series of advanced topics in MATLAB. My definition of “Advanced” is somewhat nebulous and arbitrary, so even newer users can give this a watch. Two and a half minute video shows how to use buttondownfcn to get the current point. This can be a fundamental skill that underlies many advanced GUIs.
Find the files here. Other videos have been gathered here: http://blogs.mathworks.com/pick/category/video/ Other Advanced MATLAB posts have been gathered here: http://blogs.mathworks.com/pick/category/advanced-matlab/

### One Response to “Advanced MATLAB: ButtonDownFcn”

1. Daphne replied on :

Thanks for another great tutorial.

If my plot were actually a 2-D figure, would it be possible to get the (x,y) and also the intensity at that spot (x/255)?

Thanks,
Daphne

 Name (required) E-mail (required, will not be published) Website (optional) Spam protection (required): What is 2 + 5 ?

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>


If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).

Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.

These postings are the author's and don't necessarily represent the opinions of MathWorks.