error with using the variable
2 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1234492/image.png)
1 个评论
回答(1 个)
Walter Roberson
2022-12-17
编辑:Walter Roberson
2022-12-17
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!