Hello everyone.
I want to import image on app designer. Also, I would like to swith the image when drop down items changed.
How can i do it?
% Value changed function: PatientIDDropDown
function PatientIDDropDownValueChanged(app, event) value = app.PatientIDDropDown.Value; if (value=='5648834') I1 = imshow('CT1.png', 'Parent', app.image) elseif (value=='5648834') I2 = imshow('CT2.png', 'Parent', app.image) elseif (value=='5648834') I3 = imshow('CT3.png', 'Parent', app.image) elseif (value=='5648834') I4 = imshow('CT4.png', 'Parent', app.image) end end
I make my code like above. However I got error message
Specify a UIAxes as the value for 'Parent'.
Best regard, SUE
Best Answer