From: Armand Mensen on
Dear Matlabbers,

I'm quite new to Matlab and would like to program a simple psychological experiment called the "line bisection task" for one of my projects.

In the experiment the participant sees a basically blank screen with a single horizontal line somewhere on the screen (I've created images for this already). The participant must then click, where they think, the centre of the line is.

I'd like to have the mouse coordinates saved to a variable every time the participant clicks the screen, and the time from image presentation to mouse click (reaction time).

Could someone tell me whether this is even possible and the basic commands I need to use to implement this idea.

Thanks everyone!
From: John D'Errico on
"Armand Mensen" <mensen19(a)googlemail.com> wrote in message <h881gb$1t0$1(a)fred.mathworks.com>...
> Dear Matlabbers,
>
> I'm quite new to Matlab and would like to program a simple psychological experiment called the "line bisection task" for one of my projects.
>
> In the experiment the participant sees a basically blank screen with a single horizontal line somewhere on the screen (I've created images for this already). The participant must then click, where they think, the centre of the line is.
>
> I'd like to have the mouse coordinates saved to a variable every time the participant clicks the screen, and the time from image presentation to mouse click (reaction time).
>
> Could someone tell me whether this is even possible and the basic commands I need to use to implement this idea.
>
> Thanks everyone!

Learn to use matlab. Learn to use matlab to help you
find the tools provided. You wish to get input from the
mouse.

lookfor mouse

John