Operands to the || and && operators must be convertible to logical scalar values
조회 수: 1 (최근 30일)
이전 댓글 표시
I an writing code and can't figure out why this line of code will not workk. Both sides of the && are either true or false
totalCorners = 0;
threshhold = 200000;
height = size(cornerResponseFunction, 1);
width = size(cornerResponseFunction, 2);
for u = 1:height<=u
for v = 1:width<=v
if ((cornerResponseFunction(u,v) > threshhold) && isLocalMaxB(cornerResponseFunction, u, v))
totalCorners = totalCorners + 1;
cornerList(totalCorners).x = u;
cornerList(totalCorners).y = v;
cornerList(totalCorners).q = q;
end
end
end
댓글 수: 0
채택된 답변
James Tursa
2019년 12월 3일
Did you mean this
for u = 1:height<=u
for v = 1:width<=v
to be this
for u = 1:height
for v = 1:width
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Standard File Formats에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!