Browsing & Setting current directory in static text in GUI

2 次查看(过去 30 天)
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
users_choice = uigetdir('Select a directory');
cd(users_choice);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by