Thread Subject: Clear all button in gui

Subject: Clear all button in gui

From: Tumul Dubey

Date: 7 May, 2008 01:49:02

Message: 1 of 3

ho do we reset or clear all inputs/graphs through a push
button in gui?

Subject: Clear all button in gui

From: helper

Date: 7 May, 2008 04:07:02

Message: 2 of 3

"Tumul Dubey" <tumul_18@yahoo.co.in> wrote in message
<fvr1qe$fre$1@fred.mathworks.com>...
> ho do we reset or clear all inputs/graphs through a push
> button in gui?

Create the button (using GUIDE or the UICONTROL function)
and define a callback (check out "callbacks" in the
documentation). Within the callback, use the CLA function
for each axis. Not sure what you mean about "inputs".

Subject: Clear all button in gui

From: Sourav Roy

Date: 7 May, 2008 04:47:15

Message: 3 of 3

"Tumul Dubey" <tumul_18@yahoo.co.in> wrote in message
<fvr1qe$fre$1@fred.mathworks.com>...
> ho do we reset or clear all inputs/graphs through a push
> button in gui?

You can create a push button and to its callback add the
code like:-
axes(handles.axes1);
cla reset;
and for clearing inputs in text box etc, set the value to
default or wahtever you want or blank.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com