Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Double Integral error
Replies: 5   Last Post: Nov 28, 2012 1:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Francesco Perrone

Posts: 39
Registered: 5/2/12
Re: Double Integral error
Posted: Nov 28, 2012 1:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


would it be possible to use the first approach you proposed with dblquad, accounting for k2 and k3 at the same time?

I mean doing

for i = 2:numel(k1)

phi_33 = @(k2, k3) E_k0./((4*pi.*k.^4)).*(k1(i).^2 + k2.^2);

PHI_33(i) = quad(phi_33,k2(i-1),k2(i),k3(i-1),k3(i));


Like this should it be possible to overcome the issue you noted about actually using the second input, instead of guessing that it's not called for real.

I thank you again.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.