Clear Filters
Clear Filters

error with using the variable

1 view (last 30 days)
Shatha
Shatha on 17 Dec 2022
Edited: Walter Roberson on 17 Dec 2022
  1 Comment
Matt J
Matt J on 17 Dec 2022
Edited: Matt J on 17 Dec 2022
What is the question? The error message explains already what is wrong.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 17 Dec 2022
Edited: Walter Roberson on 17 Dec 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.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!