Sounds Logical
Send Page To a Friend

Table Of Contents Previous Page

[M-Utilities overview]

M-Utilities: MATLAB function reference

winuigetfolder
Version 1.0 Requires MATLAB 6.0 (R12) or later

Browse for a folder via a GUI (PC-Windows only).

Similar to the built-in MATLAB uigetfile function, but browses for (and returns) a folder name rather than a file name.

File format: mex-file
Editable source code:
no
Utilises non-editable functions: yes (Windows API dll's)
Platform:
PC/Windows
Required MATLAB Toolboxes: none (except core MATLAB)
Demo version limitations: none (except for displaying of demo banner)
Syntax:
 

pathname=winuigetfolder;

  pathname=winuigetfolder(Subtitle);
Arguments:
Input:
Subtitle

[Optional] string containing desired text to be placed as a subtitle within the "Browse for folder" window.

Output:
pathname

string containing full path of the folder selected via the GUI. Returns an empty string if the user selects "Cancel" within the browser.

This function is implemented as a mex function (Windows DLL) called winuigetfolder.dll. The accompanying winuigetfolder.m file simply contains the help comments for access via the usual MATLAB 'help' command.

 
Examples:
Open a folder-browsing GUI with default subtitle, return chosen path (after user action):
  myfolder=winuigetfolder;
   
Same as before but using specified text as subtitle to appear in folder-browsing GUI:
  myfolder=winuigetfolder('Please choose a folder');

Top Of Page Table Of Contents Previous Page

Send Page To a Friend

home - news - products - store - support - site map - company info
© 2007 Sounds Logical. All rights reserved.
Sounds Logical
legal notice - privacy statement