help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Numerical Differentiation and Integration of Array Data


From: c.
Subject: Re: Numerical Differentiation and Integration of Array Data
Date: Fri, 2 Dec 2011 10:06:41 +0100

On 2 Dec 2011, at 08:34, syberraith wrote:

> I have some functions for mechanical modeling.  
> 
> 1) I would like to generate a data set of a number of (x,y) pairs.   
> 
> 2) Next, numerically differentiate the pairs and fill another y column in
> the array.
> 
> 3) Then finally, numerically integrate the second y column over the total
> number of rows in the array.
> 
> I've played with octave a little bit and have been able to get quad to work
> and have written a few basic scripts, although I'm clueless about
> differentiating and integrating from array data.

for integration of data given as sample pairs "trapz" is probably more 
convenient to use rather than "quaad"
for differentiation you might have a look at the function "diff". 

> Fred 
c.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]