Borrar filtros
Borrar filtros

How do I display a button on a figure which is also showing an image?

5 visualizaciones (últimos 30 días)
Mitch Hezel
Mitch Hezel el 11 de Abr. de 2023
Editada: Walter Roberson el 11 de Abr. de 2023
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.

Respuestas (1)

Walter Roberson
Walter Roberson el 11 de Abr. de 2023
Editada: Walter Roberson el 11 de Abr. de 2023
h = uicontrol('style', 'push', ...
'Position', [x y width height], ...
'String', 'Push Me', ...
'Callback', @Function_To_Invoke_When_Button_Is_Clicked)

Categorías

Más información sobre Display Image 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