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)'

采纳的回答

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 个评论
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