App Designer Plot having error

조회 수: 9 (최근 30일)
ZHAO YANG
ZHAO YANG 2020년 9월 26일
댓글: Mario Malic 2020년 9월 26일
I tring to plot image to UIAxes
Error is 'reference to a cleared variable app.
Error in app1 (line 271)
runStartupFcn(app, @startupFcn)'

채택된 답변

Mario Malic
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
ZHAO YANG
ZHAO YANG 2020년 9월 26일
Great. Provlem resolved
Mario Malic
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 CenterFile 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!

Translated by