error with using the variable

2 次查看(过去 30 天)
Shatha
Shatha 2022-12-17
  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
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.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by