You can set the pointer in a MATLAB figure window to a clock using:
set(gcf,'pointer','watch')
and then when your calculation has finished you can go back to the arrow
with:
set(gcf,'pointer','arrow')
Other styles include
circle
cross
crosshair
ibeam
fleur
custom
HTH
Rob
--
===========================================================
Robert Henson E-mail - r...@mathworks.com
The MathWorks, Inc. WWW - http://www.mathworks.com
24 Prime Parkway Phone - (508) 647-7505
Natick, MA 01760 FAX - (508) 647-7012
===========================================================
You can also use the function SETPTR:
» help setptr
SETPTR Set figure pointer.
SETPTR(FIG,CURSOR_NAME) sets the cursor of the figure w/ handle FIG
according to the cursor_name:
'hand' - open hand for panning indication
'hand1' - open hand with a 1 on the back
'hand2' - open hand with a 2 on the back
'closedhand' - closed hand for panning while mouse is down
'glass' - magnifying glass
'lrdrag' - left/right drag cursor
'uddrag' - up/down drag cursor
'add' - arrow with + sign
'addzero' - arrow with 'o'
'addpole' - arrow with 'x'
'eraser' - eraser
'help' - arrow with question mark ?
[ crosshair | fullcrosshair | {arrow} | ibeam | watch | topl |
topr ...
| botl | botr | left | top | right | bottom | circle | cross |
fleur ]
- standard figure cursors
SetData=setptr(CURSOR_NAME) returns a cell array containing
the Property Value pairs which correctly set the pointer to
the CURSOR_NAME specified. For example:
SetData=setptr('arrow');set(FIG,SetData{:})
SETPTR(FIG,'file','hand.dat') sets the cursor of the current figure
to that of the Macintosh cursor saved in the ascii hexidecimal file
'hand.dat'.
example input file:
01801A702648264A124D1249680998018802400220022004100408080408040801801
BF03F
F83FFA1FFF1FFF6FFFFFFFFFFE7FFE3FFE3FFC1FFC0FF807F807F800090008<eof>
You can obtain such a file by editing a cursor resource in ResEdit in
hexidecimal mode, copying the hexidecimal data (in ascii form) and
pasting that to a new text file.
»
--
Chris Griffin
The MathWorks, Inc.