How to create a callback function for each drop down value that displays its own .JPG image in appdesigner.

4 次查看(过去 30 天)
I want to make a simple GUI in appdesigner that has a drop-down menu with 4 different items. I want the GUI to display 4 .JPG images that correspond to each of the drop-down items. How do I do this?

采纳的回答

Mehmed Saad
Mehmed Saad 2020-4-25
  1. add image in app, suppose its name is Image
  2. Create a drop down menu suppose its name is DropDown.
  3. Add 4 items and name them Image1,Image2,Image3 and Image4
  4. Add corresponding itemsdata
  5. go to callbacks tab and add callback to ValueChangedFcn
  6. give path to app.Image.ImageSource according to Values
  8 个评论
rajatajay thakur
rajatajay thakur 2020-6-28
I am using online matlab and I tried the thing not Abel to get default as well as images after clicking other options. Please if possible help with code

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by