Selecting Images from the drop-down menu
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Capx
am 19 Dez. 2021
Beantwortet: yanqi liu
am 23 Dez. 2021
Hi, I have this drop-down menu, and I would like to link the following list with images that I have saved.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/839055/image.png)
Once the image is selected, I would like it to be displayed on the image holders.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/839060/image.png)
Any help would be appreciated.
0 Kommentare
Akzeptierte Antwort
yanqi liu
am 23 Dez. 2021
% Value changed function: DropDown
function DropDownValueChanged(app, event)
value = lower(app.DropDown.Value);
if strfind(value, 'bird')
app.Original_image.ImageSource = imread('bird.jpeg');
end
if strfind(value, 'phone')
app.Original_image.ImageSource = imread('Phone.jpeg');
end
if strfind(value, 'camera')
app.Original_image.ImageSource = imread('Camera.jpeg');
end
end
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Support Package for IP Cameras finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!