'uigetdir' command is not working in MATLAB 6.1

9 ビュー (過去 30 日間)
Venkatapathi
Venkatapathi 2019 年 5 月 30 日
コメント済み: Venkatapathi 2019 年 6 月 3 日
Hi All,
i am developing a gui in MATLAB 6.1.
i would like to select a directory, whereas 'uigetdir' command is not working in MATLAB 6.1
requesting your help to know how to select a directory in MATLAB 6.1
Note: i cant move out of MATLAB 6.1 due to some constraints.
Thanks..
Venkat
  2 件のコメント
Steven Lord
Steven Lord 2019 年 5 月 30 日
Define "not working".
Does it throw an error? If so what is the full and exact text of the error message (everything displayed in red?)
Does it issue a warning? If so what is the full and exact text of the warning message (everything displayed in orange?)
Does it give you a different result than you expected? If so, please explain in more detail the result you received and the result you expected.
Venkatapathi
Venkatapathi 2019 年 5 月 31 日
Hello Steven Lord,
it thrown an error saying "Undefined function or variable 'uigetdir'".
it doesnt prefixed either error or warning. just said "Undefined function or variable uigetdir"
Thanks..
uigetdir.JPG

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2019 年 5 月 31 日
uigetdir() was added in MATLAB 6.5 .
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 5 月 31 日
Make sure the .m and the dll are both on your MATLAB path. Then just call the function with appropriate parameters:
%UIGETFOLDER Standard Windows browse for folder dialog box.
%
% folder = uigetfolder(title, initial_path)
%
% Output: folder = selected folder (empty string if dialog cancelled)
% Inputs: title = title string (OPTIONAL)
% initial_path = initial path (OPTIONAL, defaults to PWD)
%
% Examples: folder = uigetfolder - default title and initial path
% folder = uigetfolder('Select results folder') - default initial path
% folder = uigetfolder([], 'C:\Program Files') - default title
Venkatapathi
Venkatapathi 2019 年 6 月 3 日
Hi Walter...it is working..
thnak you so much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by