"Dinesh Bhati" <email@example.com> wrote in message <firstname.lastname@example.org>... > Hi, > > Can any one correct the energy Emid. It should also be same as Ex and Ey and equal to one.Note for DB1 you will get the correct Emid. > > clear > clc > str='db2' > x=randint(1,10,[1 10]); > x=x/norm(x(:)); > Ex=sum(x.^2) > [A,H]=dwt(x,str); > Emid=sum(A.^2)+sum(H.^2) > y=idwt(A,H,str); > Ey=sum(y.^2) > > Dinesh
May I know what is the problem with the Emid. As per parsevals theorem it must be equal to one.