get file and put file with memory

combines uigetfile and uiputfile and remmbers last location
1.3K Downloads
Updated 29 Sep 2006

No License

Description:Function that implements uigetfile and uiputfile with memory of last location of last put or get file. Script is very flexible and can accept a range of 1 to 5 inputs.
Inputs:
FilterSpec: determines the initial display of files and can include the * wildcard. For example, '*.m' lists all the MATLAB
DialogTitle:appears in the File name field
DefaultName:default file name
Option:use 'get' to use uigetfile
and 'put' to use uiputfile
Memoryfile: used to store last location visited
Ouputs: FileName:
PathName:
Example:
get a file with NameList
[FileNameIn,PathNameIn]= NameList('get','SourceMemory.mem','Select File to Open', '*.*','');
out a file with NameList
[FileNameIn,PathNameIn]= NameList('put','DestinationMemory.mem','Select File to Write', '*.*','');
for a quick call, use [FileNameIn,PathNameIn]= NameList('get','SourceMemory.mem') or
[FileNameIn,PathNameIn]= NameList('put','DestinationMemory.mem')
see uigetfile and uiputfile for extended help

Cite As

Rami Neseem (2024). get file and put file with memory (https://www.mathworks.com/matlabcentral/fileexchange/12460-get-file-and-put-file-with-memory), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0