Prev: QPSK modem simulation
Next: A bug in avifile?
From: anindita bhattacharjee on 20 Aug 2006 02:52 hello! i am currently working on wavelet analysis.i need to normalize a wavelet.i have seen in a book that the method is to divide the wavelet by dividing the square root of the total wavelet variance. the problem is when i do the matlab code of this it is showing the following: >> var(1,psi_daughter) Warning: Complex part of array subscript is ignored. Warning: Subscript indices must be integer values. ??? Index into matrix is negative or zero. See release notes on changes to logical indices. can anybody tell me how to get rid of this? thanx in advance. anindita
From: A. Kumar on 20 Aug 2006 09:17 anindita bhattacharjee wrote: > > > hello! > i am currently working on wavelet analysis.i need to normalize a > wavelet.i have seen in a book that the method is to divide the > wavelet by dividing the square root of the total wavelet variance. > > the problem is when i do the matlab code of this it is showing the > following: >> var(1,psi_daughter) > Warning: Complex part of array subscript is ignored. > Warning: Subscript indices must be integer values. > ??? Index into matrix is negative or zero. See release notes on > changes to > logical indices. > > can anybody tell me how to get rid of this? > thanx in advance. > anindita are you sure of var(1,psi_daughter)? It should be var(psi_daughter,1). see help var A. Kumar
From: Steven Lord on 22 Aug 2006 12:46 "anindita bhattacharjee" <animili(a)rediffmail.com> wrote in message news:ef3ebc5.-1(a)webcrossing.raydaftYaTP... > hello! > i am currently working on wavelet analysis.i need to normalize a > wavelet.i have seen in a book that the method is to divide the > wavelet by dividing the square root of the total wavelet variance. > > the problem is when i do the matlab code of this it is showing the > following: >> var(1,psi_daughter) > Warning: Complex part of array subscript is ignored. > Warning: Subscript indices must be integer values. > ??? Index into matrix is negative or zero. See release notes on > changes to > logical indices. > > can anybody tell me how to get rid of this? Rename the variable var in your code. MATLAB is trying to index into that variable using the subscripts 1 and your psi_daughter array. Since your psi_daughter array contains complex values, it throws the first warning. Since psi_daughter contains noninteger values, it throws the second warning. Since the real part of your psi_daughter array contains at least one negative value or zero, it throws the error. Because of the existence of this variable, MATLAB is not calling the VAR function with inputs 1 and psi_daughter, as you expect. Removing or renaming this variable will cause MATLAB to call the function. -- Steve Lord slord(a)mathworks.com
|
Pages: 1 Prev: QPSK modem simulation Next: A bug in avifile? |