Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Matlab - moments calculation

Status
Not open for further replies.

Eugen_E

Full Member level 6
Joined
Nov 29, 2004
Messages
383
Helped
44
Reputation
86
Reaction score
11
Trophy points
1,298
Location
Romania
Activity points
2,862
matlab moments

Hello,

The moments are defined by: mk=Integral((t^k)•f(t))dt -that is in the continous case.

I need to compute the moments for a discrete sequence (vector) in Matlab - x(1:n), for a wavelet application.
I dont think I should do something like, for example:
k=2;
t=1:n;
m2=sum((t.^k).*x), because the index is not directly related to the time variable.
The statistic moment function, computing E(X^k), provided in Matlab is ok to use?

How can I calculate this?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top