Be the first to rate this file! 5 downloads (last 30 days) File Size: 11.2 KB File ID: #24669

GUI with memory - UIREMEMBER & UIRESTORE

by Lior Cohen

 

08 Jul 2009

Code covered by the BSD License  

Like many apps, now Matlab GUI can easily "remember" its last state, using these functions.

Download Now | Watch this File

File Information
Description

Many apps "remember" their last state. The following functions make this functionality very easy for Matlab GUIs.

UIREMEMBER basically remembers (saves) the object state.
UIRESTORE basically restores the object last saved state.

The simplest way to do it is, for each "need to be remembered" object :
1. Put UIREMEMBER in the object DeleteFcn or Callback .
2. Put UIRESTORE in the object CreateFcn.

Attached is a demo that do it (just run demo.m).

The functions have more advanced usage by options such, which properties to remember / restore and name/location of the save file.
Please use HELP for the full functionality.

MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files demo.fig,
demo.m,
license.txt,
uiremember.m,
uirestore.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui Lior Cohen 09 Jul 2009 10:54:32
restore Lior Cohen 09 Jul 2009 10:54:32
remember Lior Cohen 09 Jul 2009 10:54:32
memory Lior Cohen 09 Jul 2009 10:54:32
last state Lior Cohen 09 Jul 2009 10:54:32
 

MATLAB Central Terms of Use

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 Terms prior to use.

Contact us at files@mathworks.com