フィルターのクリア

isfield on an app-designer app

3 ビュー (過去 30 日間)
Ken
Ken 2024 年 4 月 19 日
回答済み: Voss 2024 年 4 月 19 日
Trying to load data from a file into the components of an app, protecting against the fact that things might change and some components might no longer be there. But isfield isn't doing when I expect:
K>> c = app.(name)
c =
NumericEditField (10) with properties:
Value: 10
ValueDisplayFormat: '%11.4g'
RoundFractionalValues: off
Limits: [-Inf Inf]
LowerLimitInclusive: on
UpperLimitInclusive: on
ValueChangedFcn: ''
Position: [429 357 53 22]
K>> isfield(app, name)
ans =
logical
0
What am I missing? I thought isfield should give me true.

採用された回答

Voss
Voss 2024 年 4 月 19 日
Use isprop instead of isfield for checking for the existence of object (including app) properties.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by