How do I form an 'undo' button in GUI?

1 回表示 (過去 30 日間)
Huseyin
Huseyin 2014 年 5 月 19 日
コメント済み: Mahdi 2014 年 5 月 20 日
Hi, I want to add a push button to undo the last application in my interface. The interface has 5 different applications
The user first open a file as:
handles.file=mywork
Then on every application
handles.lastapplication="..." is used
How can I form an undo function to get the last results before the last application. Is it possible?
I worry about that because every time on every application, "handles.lastapplication" is used. To get the last handle before the last application seems complicated
  1 件のコメント
Mahdi
Mahdi 2014 年 5 月 20 日
I'm not too sure if there is an undo button, but a way that you can work around it is to store the results from the previous application in a matrix, and add the new application in the next row. That way, you can have a button which lets you redo the whole calculation for the previous value.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by