error with using the variable
1 view (last 30 days)
Show older comments
1 Comment
Answers (1)
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.
0 Comments
See Also
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!