error with using the variable

조회 수: 1 (최근 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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by