error with using the variable

1 vue (au cours des 30 derniers jours)
Shatha
Shatha le 17 Déc 2022
  1 commentaire
Matt J
Matt J le 17 Déc 2022
Modifié(e) : Matt J le 17 Déc 2022
What is the question? The error message explains already what is wrong.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 17 Déc 2022
Modifié(e) : Walter Roberson le 17 Déc 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.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by