error with using the variable

1 个评论

Matt J
Matt J 2022-12-17
编辑:Matt J 2022-12-17
What is the question? The error message explains already what is wrong.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
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 的更多信息

提问:

2022-12-17

Community Treasure Hunt

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

Start Hunting!

Translated by