Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Is it possible to have a photo above my dropdown box in the same figure?

1 回表示 (過去 30 日間)
Kaitlyn Roling
Kaitlyn Roling 2019 年 4 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi-
I am trying to have a figure pop up with a dropdown box and image on the same figure. I have successfully been able to pull up the figure with the dropdown box, but have been having trouble putting the photo on the same figure.
Here is a sample of my code. Any help would be appreciated!
uf = uifigure;
dd = uidropdown(uf);
imagedata = imread('logo.png');
image(uf,'logo.png');
label = uilabel(uf,...
'Position', [100 120 200 22],...
'Text', ' Select A Restaurant: ');
dd.Items = {'Choose a Restaurant','McDonalds','Wendys','Burger King','Subway','Chick-Fil-a','Arbys',...
'In and Out','Five Guys','Whataburger','Homemade'};

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by