Reset button in Matlab GUI
古いコメントを表示
Hello
I am working with Mat lab GUI and it works. But I need to add a reset button so that that when the user wants to input other parameters, it clear all the input data and figure of the previous result.
Any idea please how to implement this.
Thank you
Matt
採用された回答
その他の回答 (3 件)
David Sanchez
2013 年 5 月 10 日
to reset the plot use:
clf
type
help clf
for all the information you'll need
2 件のコメント
Matt
2013 年 5 月 10 日
Jonathan
2013 年 8 月 21 日
Hi, I think what you want to do is:
cla(handles.Diagram1,'reset')
If Diagram1 is the tag to the axes object in your gui. I found clf didn't work as expected so changed to cla and upon pushing the reset button in my gui it cleared the figure to be blank.
Sittichai Ouamaimphuet
2022 年 3 月 2 日
0 投票
cla(handles.Diagram1,'reset')
Sittichai Ouamaimphuet
2022 年 3 月 2 日
0 投票
cla(handles.Diagram1,'reset')
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!