From: Leo on
@Andy

Thanks for the prompt reply!

Just tried it and got

??? Error using ==> misfire_learn>var_edit_callback
Too many input arguments.

??? Error using ==> waitfor
Error while evaluating uicontrol Callback

I'm not sure if this is relevant, but I also use uiwait(handle_struct.H) to pause execution.

Thanks though!
From: Leo on
Everybody, thanks for all your replies.

The answer below was exactly what I needed. I am off course kicking myself, but I'm just glad it's over!!

The example code I had to look at, which I knew worked, somehow required all of the inputs to be specified, much like some of the other answers... I just love Matlab...

Anyway, a huge thank you to all of you!

Leo

"Matt Fig" <spamanon(a)yahoo.com> wrote in message <i0akpu$931$1(a)fred.mathworks.com>...
> The first two args to a callback are automatic. Anything you want to pass in goes after them.
>
>
> 'Callback',{@callback_func_name,W,A,R}
>
>
> Then in your callback you will have:
>
>
> function [] = callback_func_name(HOBJ,EVENTDATA,W,A,R)
First  |  Prev  | 
Pages: 1 2
Prev: Delaying a signal
Next: plotting colors