I have created a blank GUI and now I want to program a push button to display a file or directory browser dialog.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question could use a little more detail, but here’s a general suggestion to get you started…
You could set the callback for your push button so that it invokes one of the built-in dialog boxes available in MATLAB. You may be most interested in
UIGETDIRorUIGETFILEto browse for and select a directory or file, respectively.