フィルターのクリア

??? Attempt to reference field of non-structure array.

1 回表示 (過去 30 日間)
João Lima
João Lima 2016 年 5 月 23 日
回答済み: Walter Roberson 2016 年 5 月 23 日
Hi, my code is returning this error
??? Attempt to reference field of non-structure
array.
the code is here:
if handles.PCMM.Value == 1
metodo_compra = 1;
end
I'm using MATLAB 2009b, but if i go to 2015b the code works.
Can anybody help me?

採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 23 日
The syntax of access properties improved as of R2014b, allowing the notation you show. For earlier versions, you need to use get(), which is also still permitted.
if get(handles.PCMM, 'Value') == 1
metodo_compra = 1;
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by