- add image in app, suppose its name is Image
- Create a drop down menu suppose its name is DropDown.
- Add 4 items and name them Image1,Image2,Image3 and Image4
- Add corresponding itemsdata
- go to callbacks tab and add callback to ValueChangedFcn
- give path to app.Image.ImageSource according to Values
How to create a callback function for each drop down value that displays its own .JPG image in appdesigner.
조회 수: 1 (최근 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?
댓글 수: 0
채택된 답변
Mehmed Saad
2020년 4월 25일
댓글 수: 8
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 Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!