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

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

답변 (1개)

Apdullah YAYIK
Apdullah YAYIK 2014년 9월 14일

0 개 추천

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

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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

질문:

2014년 9월 14일

댓글:

2014년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by