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

5 ビュー (過去 30 日間)
Isti
Isti 2012 年 4 月 25 日
回答済み: Ka Mirul 2017 年 11 月 20 日
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 :)

回答 (3 件)

Image Analyst
Image Analyst 2012 年 4 月 25 日
You might try uipickfiles: http://blogs.mathworks.com/pick/2010/02/19/file-and-folder-selection-gui/ It was a " Pick of the Week."
  1 件のコメント
Daniel Shub
Daniel Shub 2012 年 4 月 25 日
Nice use of a screen shot.

サインインしてコメントする。


Matt Kindig
Matt Kindig 2012 年 4 月 25 日
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);

Ka Mirul
Ka Mirul 2017 年 11 月 20 日
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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by