error with using the variable
显示 更早的评论

1 个评论
回答(1 个)
Walter Roberson
2022-12-17
编辑:Walter Roberson
2022-12-17
1 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!