Clear Filters
Clear Filters

Browsing & Setting current directory in static text in GUI

2 views (last 30 days)
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.

Accepted Answer

Walter Roberson
Walter Roberson on 16 Nov 2015
users_choice = uigetdir('Select a directory');
cd(users_choice);

More Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!