Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Trapping the location of mouse clicks

Subject: Trapping the location of mouse clicks

From: John Taylor

Date: 10 Aug, 2011 15:26:10

Message: 1 of 2

I'm writing a script requiring experimental participants to click over items displayed on the screen, such that I can verify the order in which they have clicked. For example, I might present 5 letters on the screen and ask them to click over them in order in which they have previously been shown them. I assume I can trap mouse-click co-ordinates and if the trapped values match some reference values (+/- an error range), I can initiate some sort of response contingent outcome (colour change of the letter or whatever). If this is true, can anyone suggest how I can trap the responses? Thanks = John

Subject: Trapping the location of mouse clicks

From: Florin Neacsu

Date: 10 Aug, 2011 16:43:15

Message: 2 of 2

"John Taylor" wrote in message <j1u7ui$3cd$1@newscl01ah.mathworks.com>...
> I'm writing a script requiring experimental participants to click over items displayed on the screen, such that I can verify the order in which they have clicked. For example, I might present 5 letters on the screen and ask them to click over them in order in which they have previously been shown them. I assume I can trap mouse-click co-ordinates and if the trapped values match some reference values (+/- an error range), I can initiate some sort of response contingent outcome (colour change of the letter or whatever). If this is true, can anyone suggest how I can trap the responses? Thanks = John

Hi,

Have a look at ginput

> doc ginput

Regards,
Florin

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us