error with using the variable

2 visualizaciones (últimos 30 días)
Shatha
Shatha el 17 de Dic. de 2022
Editada: Walter Roberson el 17 de Dic. de 2022
  1 comentario
Matt J
Matt J el 17 de Dic. de 2022
Editada: Matt J el 17 de Dic. de 2022
What is the question? The error message explains already what is wrong.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 17 de Dic. de 2022
Editada: Walter Roberson el 17 de Dic. de 2022
agray has been created as a local variable in the function ImportImageButtonPushed. It is destroyed as soon as the function returns.
Perhaps you want to create an agray property app.agray and assign to it and refer to it.
You should probably be making your a into a property instead of a global.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by