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.

difraction from edge matlab code

Status
Not open for further replies.

mohammad.rashedi

Newbie level 4
Joined
Dec 11, 2015
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
43
hi,
I want to simulate diffraction from wedge with matlab using equation in balanis electromagnetic book.
but my fiqure is not look like book's figure.



my code is:

Code:
clear all
clc

c=5*(pi/12)
q=(pi/4:pi/180:(9*pi)/4)
a=pi/4
o=q-a


f=100

for m=1:1:f
    z=j^(m/2)
   t=besselj(m/2,2*pi) 
   b=sin(m/2*c) 
    d=sin(m/2*q)
  x=log10(z*t*b*d)  
   polar(o,x)
   hold on 
end



please tell me what's wrong in my code and if possible,send me code of diffraction from wedge.
 
Last edited by a moderator:

How do you expect get some help without showing the reference picture ?
 

Some parameters present on equation 11.191a are not present at the picture 11-23 ( n, Ψ ) making a little hard correlate one with other. Moreover, the code above in actual arrangement, at least for me, became a little bit hard to debug due to the temporary variables that you created to store values; their naming is not suggestive (c, d, ...). It is missing more details.

Anyway, you can find a lot of MATLAB formulations for applications on electromagnectic fields at the PDF available below, that although do not plot most results in polar coordinates, could be a good start for your code:

 

tanx,
I sent another image that shows the parameters name and amount in my code.
do you need more information about my code?

I can't find any matlab code in pdf that you sent me.

 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top