Add Image to a button

조회 수: 8 (최근 30일)
Milindu
Milindu 2012년 5월 27일
I successfully add few .jpg images to few buttons, but when I move to this(GUI with images) GUI from another GUI using
function pushbutton3_Callback(hObject, eventdata, handles)
open('menu_page1.m');
the images I assign to the buttons are not shown,Please help me out..

채택된 답변

Walter Roberson
Walter Roberson 2012년 5월 27일
open('menu_page1.m') opens the file menu_page1.m in the MATLAB editor, and does not execute the code.
You should either call the code (if it is a function) or run() the code (if it is a script)
menu_page1() %calls a function
run('menu_page1.m') %executes a script
  댓글 수: 1
Milindu
Milindu 2012년 5월 27일
tnx.. it was really helpful.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by