How do I display a button on a figure which is also showing an image?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to display an image using imshow, and have a button next to the image that performs some calculation.
I = imread('path/to/image.jpg')
I think the uibutton command requires the input to be a uifigure, which I is not.
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 4월 11일
편집: Walter Roberson
2023년 4월 11일
h = uicontrol('style', 'push', ...
'Position', [x y width height], ...
'String', 'Push Me', ...
'Callback', @Function_To_Invoke_When_Button_Is_Clicked)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!