Undefined operator '==' for input arguments of type 'struct'.
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hari hara pallapothu
le 3 Mar 2017
Modifié(e) : Walter Roberson
le 3 Mar 2017
hey people I am getting this error while i am working on my project,what does this really mean????please help me out....this is the following code
if f==iregion
for jj = 1:10
writeLED(bbb,'usr0',1)
pause(0.05)
writeLED(bbb,'usr0',0)
pause(0.05)
end
end
0 commentaires
Réponse acceptée
Alexandra Harkai
le 3 Mar 2017
It means f or iregion is a struct, and the '==' operator is not defined for that type. for structs, you can use isequal to compare if they are the same.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!