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: 3D green function
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jamal

Posts: 16
Registered: 3/16/11
3D green function
Posted: Jan 30, 2013 12:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear All,

Can Any one help me on the reposted message last week , please see below.


I have this code to be as a green function for 2 D homogenous medium , which means 2D data matrix has been collected and analyzed to perform the 2D hankel function.

function [IV]=2DGreenfunction(x1,x2,lambda)
for ii=1:size(x2,2)
for jj=1:size(x1,2)
IV(ii,jj)=besselh(0,2,2*pi*norm(x1(:,jj)-x2(:,ii),2)/lambda);
end
end
IV=IV/norm(IV,2);

How to change the above function code if i need to use 3D green function which is not hankel function but it should be like exp(-jkr)/r, putting on mind that the data i will use here is 3D matrix for 3dimensional homogenous medium.



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.