??? Attempt to reference field of non-structure array.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
João Lima
am 23 Mai 2016
Beantwortet: Walter Roberson
am 23 Mai 2016
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?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 23 Mai 2016
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!