uiputfile2
Happy New Year!
- Wow - 2010. It's a whole new decade.
Bob's pick this week is uiputfile2 by Chris Cannell.
This utility function is a wrapper to MATLAB's uiputfile command. What does it add? Memory. More specifically, it remembers the folder where the last file was saved. So when users of your GUIs want to save files, they don't have to navigate to their favorite folders every time. Nice.
Chris chose to implement uiputfile2 by simply saving the information (path to folder) in a MAT file. That way it remembers from MATLAB session to session. That strategy is also robust to upgrades. Sweet.
I know I could program the logic myself, but thanks to Chris I don't have to!
See also (2010-01-05 update)
As Aurélien noted in addition to uiputfile2 Chris also posted uigetdir2 as well as uigetfile2. They also are similar location-persistent wrappers to uigetdir and uigetfile respectively.
- 범주:
- Picks
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.