필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Warning: Integer operands are required for colon operator when used as index ???

조회 수: 1 (최근 30일)
IPlover
IPlover 2013년 11월 22일
마감: Walter Roberson 2013년 11월 22일
My code is showing the following:
Warning: Integer operands are required for colon operator when used as index
Y=int32(noise);
Y=int32(yn);
X=int32(xn);
[xn,yn] = ginput(1);
noise = img((yn-2):(yn+2), (xn-2):(xn+2));
noise = mean(noise(:));
img = img - noise;
It is showing the error in 5th line noise = img((yn-2):(yn+2), (xn-2):(xn+2));
Please help

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by