필터 지우기
필터 지우기

error msg- Input must contain only finite real nonnegative integers. when using coif1.3 and bior1.3 in place of haar

조회 수: 3 (최근 30일)
arrb=de2bi(arr,2);
serdata=arrb(:);
mdata=pskmod(serdata,2);
  댓글 수: 2
Walter Roberson
Walter Roberson 2017년 6월 14일
I think we will need a bit more of your code, showing how arr is constructed.
naval solanki
naval solanki 2017년 6월 14일
편집: Walter Roberson 2017년 6월 14일
ind=ind+1;
arr(ind)=rr1;
ind=ind+1;
arr(ind)=rr2;
arr=arr+256;
using haar and lifting wavelet i have made array based on aprox., d,h,v detail coefficient.

댓글을 달려면 로그인하십시오.

답변 (1개)

Wayne King
Wayne King 2017년 6월 19일
Hi Naval, I agree with Walter that we need more information. It helps to give us some sample data that we can reproduce the issue from. However, I will just guess that the problem is pskmod() does not accept inputs that are not positive integers. When you obtain the wavelet transform of some positive integer-valued data, you are certainly not guaranteed to obtain positive integer-valued coefficients. In fact, you are likely not going to obtain integer-valued coefficients.
The Haar transforms, haart(), have an 'integer' option that will ensure that the wavelet coefficient outputs are integers, but you will still not be assured that those integers will be positive.

카테고리

Help CenterFile Exchange에서 Discrete Multiresolution Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by