How do I display a button on a figure which is also showing an image?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Walter Roberson
am 11 Apr. 2023
Bearbeitet: Walter Roberson
am 11 Apr. 2023
h = uicontrol('style', 'push', ...
'Position', [x y width height], ...
'String', 'Push Me', ...
'Callback', @Function_To_Invoke_When_Button_Is_Clicked)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!