フィルターのクリア

How to Rectify the "index must be a positive integer or logical" Error in my code?

1 回表示 (過去 30 日間)
PRIYANGA
PRIYANGA 2012 年 12 月 14 日
Hi....Everybody... How are you?
??? Attempted to access dompol1(-1,:); index must be a positive integer or logical.
Error in ==> DEIMGC at 12 D1=dompol1(fraco(4),:);
Error in ==> VQWTVARWTQT at 486 [cimg1g]=deimgc(vqcode7g,dompool3g,gsize,scale);
This is Error in my code? How to correct that Error in my code.
>>

採用された回答

Matt J
Matt J 2012 年 12 月 14 日
編集済み: Matt J 2012 年 12 月 14 日
Stop using negative numbers to index an array, like -1 in the following
dompol1(-1,:)
It doesn't correspond to any array location.
  2 件のコメント
PRIYANGA
PRIYANGA 2012 年 12 月 14 日
編集済み: PRIYANGA 2012 年 12 月 14 日
ok Sir.
But, how to convert the value negative to positive and pass that value through the function?
I have to calculate the vqcode7r,vqcode7g,vqcode7b values.. the result of the R G B any one is contain the negative value. how to stop the negative values occur in the calculation.
PRIYANGA
PRIYANGA 2012 年 12 月 14 日
Thank You sir.

サインインしてコメントする。

その他の回答 (1 件)

Muruganandham Subramanian
Muruganandham Subramanian 2012 年 12 月 14 日
編集済み: Muruganandham Subramanian 2012 年 12 月 14 日
Use abs() command

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by