Code covered by the BSD License  

Highlights from
Moments of a function

Be the first to rate this file! 6 Downloads (last 30 days) File Size: 1.37 KB File ID: #15639

Moments of a function

by Adam Wyatt

 

19 Jul 2007 (Updated 20 Jul 2007)

Generates the nth order moment of a function.

| Watch this File

File Information
Description

Computes the nth moment mean of a function (needs more implentation).

m = moment(x, y, n)

m = nth moment of y
x = domain
y = data
n = nth moment == 1 by default

m = int(x^n * y) / int(y)

where int is integral over all x integral is calculated using trapezium rule

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
chemistry Adam Wyatt 22 Oct 2008 09:19:52
physics Adam Wyatt 22 Oct 2008 09:19:52
moment Adam Wyatt 22 Oct 2008 09:19:52
function Adam Wyatt 22 Oct 2008 09:19:52
order moment Adam Wyatt 22 Oct 2008 09:19:52
moment Stelios Flamp 13 Feb 2009 19:04:27

Contact us at files@mathworks.com