get file and put file with memory
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |