Path: news.mathworks.com!not-for-mail
From: "prabhakaran m" <prabha.gahon@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: help with double integration
Date: Thu, 29 Mar 2012 01:26:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <jl0dnq$g19$1@newscl01ah.mathworks.com>
Reply-To: "prabhakaran m" <prabha.gahon@gmail.com>
NNTP-Posting-Host: www-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1332984378 16425 172.30.248.48 (29 Mar 2012 01:26:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Mar 2012 01:26:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2438980
Xref: news.mathworks.com comp.soft-sys.matlab:762530

need help to solve double integration. i have to calculate the fourier constant using the formula.

A(m,n)= double integration of w(x,y)*cos(m*y/r)*cos(2*n*pi*x/L)in the limits(0,L,0,2*pi*R) i have the matrix w(x,y) of size 74*17 and A will also be in the size of 74*17. but i am puzzled with the number of for loops i have to use. here m and n in the formula is also constants m form 1 to 74 and n form 1 to 17. R is radius. L is the length.

been puzzled here. the code below

out = integrnd(x,y);

A(m,n)= w(x,y)*cos(m*y/r)*cos(2*n*pi*x/l);

result = dblquad(@integrnd,0,l,0,2*pi*R);

i know there is big mistake in the code. by seeing the double integration help file, i have did the above part. if somebody helps me with the loops it will be of great help.