MATLAB Answers

Photo and Text with Dropdown Menu

3 ビュー (過去 30 日間)
Kaitlyn Roling
Kaitlyn Roling 2019 年 4 月 1 日
コメント済み: Kevin Phung 2019 年 4 月 1 日
Hi all-
I created a drop down box with several options. Above it, I would like to put a line of text that says "Please choose an option from below." Lastly, I am hoping to put an image in this same figure.
Is that possible? I have been doing a lot of research to try and make it happen, but I have come up short.
Any assistance would be great!

回答 (1 件)

Kevin Phung
Kevin Phung 2019 年 4 月 1 日
use uicontrol to create a text box:
and imshow to create your image:
txt= uicontrol('Style','text','String','Please choose an option from below.',...
'Position', [x y width height])
  2 件のコメント
Kevin Phung
Kevin Phung 2019 年 4 月 1 日
^ yes, that would be much cleaner!



Community Treasure Hunt

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

Start Hunting!

Translated by