From: Roel on
Hi all,

I could not find the answer to this question browsing google and this forum.

I want that my GUI gives an error msg (like errordlg) when there is an error in the underlying matlab callback script, e.g.:

Pressing pushbutton_A e.g. results in a Matlab command window error:

"??? Error while evaluating uicontrol Callback"

Now my GUI does nothing but I want my GUI to then give a popup message that the entered values are incorrect. How to do this?

Thanks

Roel
From: us on
"Roel " <r.a.massink(a)gmail.com> wrote in message <htm04c$km9$1(a)fred.mathworks.com>...
> Hi all,
>
> I could not find the answer to this question browsing google and this forum.
>
> I want that my GUI gives an error msg (like errordlg) when there is an error in the underlying matlab callback script, e.g.:
>
> Pressing pushbutton_A e.g. results in a Matlab command window error:
>
> "??? Error while evaluating uicontrol Callback"
>
> Now my GUI does nothing but I want my GUI to then give a popup message that the entered values are incorrect. How to do this?
>
> Thanks
>
> Roel

a hint:

help try;
help catch;

us
From: Roel on
Thanks, exactly what I needed :)