Browsing & Setting current directory in static text in GUI

Hi. I am new to GUI. Please help me.
I have a GUI, i want upon pressing browse button,it should ask for a path and set that path as current working directory path.

 採用された回答

Walter Roberson
Walter Roberson 2015 年 11 月 16 日

1 投票

users_choice = uigetdir('Select a directory');
cd(users_choice);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by