Undefined operator '==' for input arguments of type 'struct'.
조회 수: 3 (최근 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!