Got Questions? Get Answers.
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:
Get position on an imagesc like data cursor without using data cursor

Subject: Get position on an imagesc like data cursor without using data cursor

From: Camille Couzi

Date: 17 Aug, 2010 14:17:04

Message: 1 of 1

Hi everybody!!!!

I am trying to get position of the cursor when I am on an imagesc. On that imagesc I display a matrix, so I have begun defining a buttondownfcn. I need to get the position of the click (ie the X Y position on the matrix of imagesc) in order to make further calculations on my code.
Currentpoint don't seem to be accurately because it gives pixels positions (and not position on the matrix). In fact, I would need to get the position like the one given by the datacursor, but I don't want to use data cursor because I don't want to have the datatip on my window...

To summarize: I need to get the X-Y position of the click on my imagesc.

Any idea of what i can use?
PLease, I need your help, just a little idea...

Thank you in advance

Camille.

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