App Designer Plot having error

9 visualizaciones (últimos 30 días)
ZHAO YANG
ZHAO YANG el 26 de Sept. de 2020
Comentada: Mario Malic el 26 de Sept. de 2020
I tring to plot image to UIAxes
Error is 'reference to a cleared variable app.
Error in app1 (line 271)
runStartupFcn(app, @startupFcn)'

Respuesta aceptada

Mario Malic
Mario Malic el 26 de Sept. de 2020
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 comentarios
ZHAO YANG
ZHAO YANG el 26 de Sept. de 2020
Great. Provlem resolved
Mario Malic
Mario Malic el 26 de Sept. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by