App Designer Plot having error

10 ビュー (過去 30 日間)
ZHAO YANG
ZHAO YANG 2020 年 9 月 26 日
コメント済み: Mario Malic 2020 年 9 月 26 日
I tring to plot image to UIAxes
Error is 'reference to a cleared variable app.
Error in app1 (line 271)
runStartupFcn(app, @startupFcn)'

採用された回答

Mario Malic
Mario Malic 2020 年 9 月 26 日
It stated an error "Error is 'reference to a cleared variable app."
Don't use clear all, neither clc in this and most of the cases.
if you call a function with input arguments, and within that function you execute clear all command, you are not able to use anything you sent, maybe even what's declared prior to entering the function.
  2 件のコメント
ZHAO YANG
ZHAO YANG 2020 年 9 月 26 日
Great. Provlem resolved
Mario Malic
Mario Malic 2020 年 9 月 26 日
For the future questions, if you mind sharing the code for the rest of the users, make a short demonstration/example of your code does, rather than deleting what was posted.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by