Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
3d green function

Subject: 3d green function

From: Jamal

Date: 28 Jan, 2013 20:46:08

Message: 1 of 2

Dear All,

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.

Subject: 3d green function

From: anyone

Date: 2 Feb, 2013 17:06:52

Message: 2 of 2

On Mon, 28 Jan 2013 20:46:08 +0000, Jamal wrote:

> Dear All,
>
> 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.

Start here:

http://www.mathworks.com/help/matlab/math/multidimensional-arrays.html

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us