필터 지우기
필터 지우기

subscript problem

조회 수: 1 (최근 30일)
Mohammad Golam Kibria
Mohammad Golam Kibria 2012년 3월 21일
I have a code as follows:
hsv=rgb2hsv(iOrg);
g=stdHue(hsv(:,:,1)*360);
where stdHue is a user defined function. but it shows me the following error.
Subscript indices must either be real positive integers or logicals.
Error in ==> .............at 35
g=stdHue(hround);
Is there any one to help me?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2012년 3월 21일
Either you redefined stdHue to be a variable in your code, or there is some reason that MATLAB does not know that stdHue is a function. (The latter situation an occur in some cases where functions are "poofed into existence".)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by