error with using the variable

1 Ansicht (letzte 30 Tage)
Shatha
Shatha am 17 Dez. 2022
Bearbeitet: Walter Roberson am 17 Dez. 2022
  1 Kommentar
Matt J
Matt J am 17 Dez. 2022
Bearbeitet: Matt J am 17 Dez. 2022
What is the question? The error message explains already what is wrong.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 17 Dez. 2022
Bearbeitet: Walter Roberson am 17 Dez. 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.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by