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:
GUI browse button and load pdf.

Subject: GUI browse button and load pdf.

From: Justin

Date: 2 Feb, 2011 14:49:04

Message: 1 of 2

I'm new to using matlab and GUI. I'm writing a GUI where I'd like to add a Browse Button, lookup a downloaded .pdf (or other image) file and have the image come up on the GUI.

Is there any sample code that can be provided? Ideally I'd like a little more than just basic commands as I'm still learning the syntax of everything.

Thank You.

Subject: GUI browse button and load pdf.

From: Sean de

Date: 2 Feb, 2011 17:24:03

Message: 2 of 2

"Justin" wrote in message <iibqsv$r9o$1@fred.mathworks.com>...
> I'm new to using matlab and GUI. I'm writing a GUI where I'd like to add a Browse Button, lookup a downloaded .pdf (or other image) file and have the image come up on the GUI.
>
> Is there any sample code that can be provided? Ideally I'd like a little more than just basic commands as I'm still learning the syntax of everything.
>
> Thank You.

a start:
doc uigetfile %gets the file path
doc uicontrol %pushbutton
doc imread %if you have image processing toolbox: load image, I don't know about pdfs

Also:
http://www.mathworks.com/matlabcentral/fileexchange/24861-41-complete-gui-examples
GUI 27

-Sean

Tags for 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