- There is an extra end keyword after the if-elseif-else-end code.
- if bbox == Bug(i), here i should be capital.
why my change on edit value (text) command doesnt work
조회 수: 2 (최근 30일)
이전 댓글 표시
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
i have attach the file too, because it show an error message and wont even let me run the program
댓글 수: 0
답변 (1개)
Rashed Mohammed
2020년 11월 26일
Hi Timothy
The code you have attached has 2 main errors due to which the app is not running and is giving errors.
Hope this helps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!