Borrar filtros
Borrar filtros

Display JPEG file in GUI

3 visualizaciones (últimos 30 días)
Cheng Yoong
Cheng Yoong el 15 de Dic. de 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?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre Display Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by