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.

Double integral in MATLAB

Status
Not open for further replies.

a_ronagh

Junior Member level 3
Joined
Dec 21, 2004
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
288
double integral matlab

Hi everybody

Do you know how to calculate a double integral in MATLAB when the
inner integral limits are themselves functions of the outer variable?
Considering that I don't want to change the variables.
 

matlab double integral

Have you tried dblquad function to numerically integrate it?
It is well explained in Matlab help for details.

Maybe you can show me the function, thus I could give you a more specific answer.
 

double integration matlab

You can do it in at least two ways (that I know):

1. (the best) use function 'int'.

Go ahead to try the following:

syms x y
f=inline('x.^2 + y.^2')
int(int(f(x,y),0,exp(y)),0,1)

2. use function 'dblquad', but you need to redefine your function f(x,y) in the rectangle which includes your original integration range. In the additional part, you define f(x,y)=0.
 

matlab double integration

hi
you can use any way
for example
>> dblquad('x*y',-1,1,-1,1)

ans =

0

>> dblquad('x*y',0,1,0,1)

ans =

0.2500

>> syms x y
f=inline('x.^2 + y.^2')
int(int(f(x,y),0,exp(y)),0,1)

f =

Inline function:
f(x,y) = x.^2 + y.^2


ans =

1/9*exp(1)^3+exp(1)-19/9
bye
 
double integral in matlab

hi everybody do you know how to calculate the expression "1/sqrt(x^2+y^2)" in double integral, i mean dblquad('1/sqrt(x^2+y^2)',0,1,0,1)

I tried it but matlab gives an error about"mpower"

thank you in advance
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top