Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Please correct the energy
Replies: 3   Last Post: Oct 28, 2010 5:55 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dinesh Bhati

Posts: 24
Registered: 8/4/10
Please correct the energy
Posted: Oct 27, 2010 1:21 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.