Select path and filename
by Miroslav Balda
08 Mar 2007
(Updated 08 Mar 2007)
The function enables browsing subdirectory tree, and puts selected path and filename into variables
|
Watch this File
|
| File Information |
| Description |
The function is a replacement of the function getpf.m (FEX 13768), which suffered by an instability when changing releases of Matlab. The function selectpf.m should work well for both Matlab R2006a and R2006b.
The function puts names of directory and file into variables which may be used later for handling with the selected file. It is beneficial in cases when searching files for processing by browsing a directory tree.
The function starts in a chosen point of a tree and displays contents of the subdirectory. A user may select an item from the list by one of two ways:
- entering one of displayed names, or
- paste and copy a name to prompt.
Yet another way to reach the required name exists - answer by pushing any key to the prompt until the name you need is displayed. Then, accept it by pushing ENTER. As soon as a file name is accepted, the function returns path and name of the selected file.
The function needs another function from FEX, inp.m, #9033 |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Select path and filename - getpf.m
|
| MATLAB release |
MATLAB 7.3 (R2006b)
|
| Other requirements |
Function inp.m (FEX 9033) for keyboard input with default value.
Inform me on any bug directly by e-mail, please. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com