Display JPEG file in GUI

1 view (last 30 days)
Cheng Yoong
Cheng Yoong on 15 Dec 2011
I want to display an image in my GUI.
An example given by Matlab on how to do this is by using imshow command:
imshow('board.tif')
now i want to display an image i've created.
how am i going to do that?
Do i have to place the file into specific folder?

Accepted Answer

Chandra Kurniawan
Chandra Kurniawan on 15 Dec 2011
Fisrt you need to read your image that saved in your drive.
Eq :
I = imread('C:\My Document\Filename.jpg');
imshow(I);
  1 Comment
Walter Roberson
Walter Roberson on 15 Dec 2011
Right.
And No, it does not need to go in any particular folder.

Sign in to comment.

More Answers (1)

Hamrit
Hamrit on 22 May 2012
creat Axe in your gui
then =======
I=imread('yourfile');
axes(handles.axe1);
imshow(I);

Categories

Find more on Display Image in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!