필터 지우기
필터 지우기

Selecting Images from the drop-down menu

조회 수: 5 (최근 30일)
Capx
Capx 2021년 12월 19일
답변: yanqi liu 2021년 12월 23일
Hi, I have this drop-down menu, and I would like to link the following list with images that I have saved.
Once the image is selected, I would like it to be displayed on the image holders.
Any help would be appreciated.

채택된 답변

yanqi liu
yanqi liu 2021년 12월 23일
% 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개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for IP Cameras에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by