MATLAB Answers

Implement "browse button" for interface with Matlab? (gui)

25 views (last 30 days)
Isti
Isti on 25 Apr 2012
Answered: Ka Mirul on 20 Nov 2017
I want to make an interface of my project that i can browse the file from my interface with "browse button". Then when i click that button, the name of file i choose will appear in the "Edit" style, and also in the the file will be read and be processed by the system.
what i have to do? Thanks before :)

  0 Comments

Sign in to comment.

Answers (3)


Matt Kindig
Matt Kindig on 25 Apr 2012
For the browse feature:
doc uigetfile
Then set the 'String' property of the edit uicontrol to the filename returned from this command.
[filename, pathname] = uigetfile();
set( yourEditHandle, 'String', filename);

  0 Comments

Sign in to comment.


Ka Mirul
Ka Mirul on 20 Nov 2017
I found a video that help me, it is about creating GUI to browse an image and display the image and its name. It should help you : https://youtu.be/7EmFShs5y9I

  0 Comments

Sign in to comment.

Sign in to answer this question.