error with using the variable

2 ビュー (過去 30 日間)
Shatha
Shatha 2022 年 12 月 17 日
編集済み: Walter Roberson 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 Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by