Undefined operator '==' for input arguments of type 'struct'.
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Alexandra Harkai
2017-3-3
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!