fill edit text value based on some requirement of if

i have a problem when i want try to change the edit field value using if it seem doesnt work.
if bbox==Bug(i)
app.EditField.Value = 'there is a pet';
elseif box==bug(detectedImg)
app.EditField.Value = 'there is a pet';
else
app.EditField.Value = 'there isno pet';
end
end

3 Comments

Could you provide more information on what "doesn't work" means? What values do appear? What is bbox, Bug(i), box, bug, detectedImg? Is there an error message? If so, please share the complete message (all the red text).
They show error that i cant change the edit value. Bbox bug(i) bug detectedImg is a condition that can be met
Share the complete error message (all the red text)

Sign in to comment.

Answers (0)

Categories

Products

Release

R2020b

Asked:

on 18 Nov 2020

Commented:

on 7 Dec 2020

Community Treasure Hunt

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

Start Hunting!