function error while using sb2ind function
古いコメントを表示
when i m using this:
isequal(~rem(CentroidTerm,1),bsxfun(@ge,CentroidTerm ,[1 1]),bsxfun(@le,CentroidTerm ,[m n]))
the output is :
ans 1 ans 1 ans 1 ans 0 three are 1 and one is 0 . what does that mean. plz tell me
1 件のコメント
Sean de Wolski
2011 年 7 月 19 日
bsxfun(@ge,CentroidTerm ,[1 1])
could just be:
CentroidTerm>=1;
no need for the singleton expansion since you're comparing to a scalar value.
回答 (1 件)
Walter Roberson
2011 年 7 月 19 日
0 投票
It means that one of the subscripts you are trying to use is out of range; in particular it appears that one of your CentroidTerm(:,2) is greater than n.
2 件のコメント
deepak deepak
2011 年 7 月 20 日
Sean de Wolski
2011 年 7 月 20 日
Did you write this code yourself?
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!