Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
To create a button for browsing a directory in Matlab GUI

Subject: To create a button for browsing a directory in Matlab GUI

From: sk maidul haque

Date: 5 Oct, 2011 10:12:29

Message: 1 of 2

can somebody tell me how to create a button in matlab GUI that will allow user to browse through the directories to give final destination directory where the user want to save some data. I am precisely asking about creating a button to give destination path to the matlab by browsing.

Subject: To create a button for browsing a directory in Matlab GUI

From: Steven_Lord

Date: 5 Oct, 2011 13:08:00

Message: 2 of 2



"sk maidul haque" <skmaidulhaque@gmail.com> wrote in message
news:j6haid$dt2$1@newscl01ah.mathworks.com...
> can somebody tell me how to create a button in matlab GUI that will allow
> user to browse through the directories to give final destination directory
> where the user want to save some data. I am precisely asking about
> creating a button to give destination path to the matlab by browsing.

Have your button uicontrol's Callback function call the UIGETDIR function.

http://www.mathworks.com/help/techdoc/ref/uigetdir.html

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us