Borrar filtros
Borrar filtros

How to load image to another script file using matlab GUI?

4 visualizaciones (últimos 30 días)
Imran  Ali Shah
Imran Ali Shah el 14 de Sept. de 2014
Comentada: Imran Ali Shah el 14 de Sept. de 2014
Hi every one. i want to build a GUI such that when I press a pushbutton it loads image and display it and also send that image to a .m script file

Respuestas (1)

Apdullah YAYIK
Apdullah YAYIK el 14 de Sept. de 2014
Create button and Callback of this button write this code ;
_t=imread('samlpe.tiff') % load image
save(t) % save as .mat
% you can send image as MATLAB .mat file not as .m script
Then create axes object an name it as axes1
imshow(t,'Parent',handles.a_ axes1) % display image_
Also you can watch this simple video
  1 comentario
Imran  Ali Shah
Imran Ali Shah el 14 de Sept. de 2014
Sir my question is how to send image to another script file. e.g I have script in which i read an image via imread function. Instead of using imread function i want to put that image in script file via button

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps 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