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

Reset Button Gui

Asked by Melvin on 8 Mar 2012

Hi everyone. What code should I put under a push button if I want to reset the inputs and outputs presented on the GUI to its most initial state? Thank you. :)

0 Comments

Melvin

Tags

Products

No products are associated with this question.

2 Answers

Answer by Sermed on 13 Mar 2012

Hi Melvin The way I do it is: Under the callback function of the reset push button write: set(handles.edit1, 'value', 0)set(handles.edit2, 'string', 'default') ...... this will solve the problem if you have a limited nr of input parameters. Their might be some other smarter methodes :o)

0 Comments

Sermed
Answer by Aldin on 13 Mar 2012

You can try this code: Callback for your RESET BUTTON: set(handles.edit1,'String','') ('' - is empty String)

1 Comment

Matt on 10 May 2013

HI

what about if i want to make the axis empty?

Aldin

Contact us