Undefined operator '==' for input arguments of type 'struct'.

3 ビュー (過去 30 日間)
hari hara pallapothu
hari hara pallapothu 2017 年 3 月 3 日
編集済み: Walter Roberson 2017 年 3 月 3 日
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

採用された回答

Alexandra Harkai
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 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by