App Designer Plot having error
조회 수: 9 (최근 30일)
이전 댓글 표시
I tring to plot image to UIAxes
Error is 'reference to a cleared variable app.
Error in app1 (line 271)
runStartupFcn(app, @startupFcn)'
댓글 수: 0
채택된 답변
Mario Malic
2020년 9월 26일
It stated an error "Error is 'reference to a cleared variable app."
Don't use clear all, neither clc in this and most of the cases.
if you call a function with input arguments, and within that function you execute clear all command, you are not able to use anything you sent, maybe even what's declared prior to entering the function.
댓글 수: 2
Mario Malic
2020년 9월 26일
For the future questions, if you mind sharing the code for the rest of the users, make a short demonstration/example of your code does, rather than deleting what was posted.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!