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:
changing crosshair for ginput

Subject: changing crosshair for ginput

From: IISc geetha

Date: 3 May, 2011 19:27:05

Message: 1 of 2

Dear sir,
is it possible to change the pointer from crosshair to arrow in case of ginput.?
if so, can u pls tell.
is it possiible to change the crosshair size in case of ginput? if so can u pls tell

Subject: changing crosshair for ginput

From: Florin Neacsu

Date: 3 May, 2011 22:02:21

Message: 2 of 2

"IISc geetha" <ganesh.kolappan.geetha@gmail.com> wrote in message <ippku9$fhf$1@fred.mathworks.com>...
> Dear sir,
> is it possible to change the pointer from crosshair to arrow in case of ginput.?
> if so, can u pls tell.
> is it possiible to change the crosshair size in case of ginput? if so can u pls tell

Hello,

Yes; try this

>edit ginput.m

Go to line 102 (I have R2007b) which is " set(fig,'pointer','fullcrosshair'); " and change it to

>set(fig,'pointer','arrow');

You are tempering with a built-in function so I recommend you make a backup before, just in case.

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