DSPRelated.com
Forums

problem with integration in matlab

Started by Friends Forever March 9, 2009
hello all,
thanks for creating this great group. i look forward for your great help.

I am having confusion doing integration of a function

f(r) =Integration{ pi* d(r)* a(r)} over r1 to r2

where
d is the distance related to r and a is the area also related to r.
That is for different value of r, the area 'a' also changes. the
integration has to be computed over the distance r1 to r2 where there
are many intervals (between r1 and r2) but the size of intervals are
very close but not equal.

let me give an example (randomly given for simplicity)
d a
10 23
13 25
14 28
16 30
17 32

and so on...
How should i proceed

Your help, highly appreciated.

Abhishek
did you look into the numerical integration methods such as
quad etc. type this in command window
help quad

Ubaid Abdullah
http://dspdotcomm.blogspot.com

--- In m..., Friends Forever wrote:
>
> hello all,
> thanks for creating this great group. i look forward for your great help.
>
> I am having confusion doing integration of a function
>
> f(r) =Integration{ pi* d(r)* a(r)} over r1 to r2
>
> where
> d is the distance related to r and a is the area also related to r.
> That is for different value of r, the area 'a' also changes. the
> integration has to be computed over the distance r1 to r2 where there
> are many intervals (between r1 and r2) but the size of intervals are
> very close but not equal.
>
> let me give an example (randomly given for simplicity)
> d a
> 10 23
> 13 25
> 14 28
> 16 30
> 17 32
>
> and so on...
> How should i proceed
>
> Your help, highly appreciated.
>
> Abhishek
>