フィルターのクリア

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

5 ビュー (過去 30 日間)
Mitch Hezel
Mitch Hezel 2023 年 4 月 11 日
編集済み: Walter Roberson 2023 年 4 月 11 日
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.

回答 (1 件)

Walter Roberson
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)

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by