微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Re: antenna radiation pattern(too urgent)

Re: antenna radiation pattern(too urgent)

时间:04-08 整理:3721RD 点击:
k frn thanks . Iwill check code wat u tell. k.

Added after 36 minutes:

frn I tried code as you but am getting error vector dimennsions must be same


thanks

at which line number and what you did

I got that error at line

plot(-M:M, abs(AF), 'r');

see this complete code here

clc
clear all;
close all;

%----------- Common Parameters for both approaches ------------

N = input('Enter the value of N --------> ');
N = round(N); % convert to integer

if(mod(N,2) == 0)
M = N/2;
else
M = (N-1)/2;
end


lambda = 50;
samples = 'odd'; % possible values can be 'odd' or 'evn'
k = 2*pi/lambda;

if(samples == 'odd')
m = -M : M;
else
m = -M : M;
index = find(m == 0);
m(index) = [];
end

[row, col] = size(m);
bm = [zeros(1,2) ones(1,col-4) zeros(1,2)];

%--------------- Line Source Parameters & Code ----------------

d = lambda/2;
length = N*d;

kk = 1;
sum = 0;
jj = 1;
[row, col] = size(m);

for ii = 1 : col
mm = m(ii);
yy = cos_theta_m(mm, lambda, length, samples);
zz=z_m(mm,d,samples);
sum = sum + (bm(jj)*exp(-j*k*zz*yy));
jj = jj + 1;
AF(kk) = sum;
kk = kk + 1;
end
kk

%---------------------------- Lets plot the results -----------

figure; grid; hold on;

plot(-M:M, abs(AF), 'r');
xlabel('source psition z');
ylabel('Normalized current');
title('current distribution for linear array');


%----------------------------------------------------------------

run for N=123, yeilds

hii frns we want to plot with respect to z not with -M:M .

ok but your z here is not correct, you must do some thing to z such as normalization or other thing

Added after 4 minutes:

you must see in your program that the number of points in AF is equals to -M:1:M

k but i don't know h to do normalisation.


if u know how to do normalisation please help me.

thanks

yes, just compute all the z vector and divide this vector by the largest value in this vector.

k thanks.


that means is it requir to modify our program?

thanks

yes

Added after 3 hours 37 minutes:

hi friend,

in the following link there is a matlab codes for balanes (all chapters in matlab)

https://www.edaboard.com/viewtopic.p...130710#1130710

enjoy

Added after 1 hours 3 minutes:

did you get the programs from the above link? tell me please

hii frn
I got output for our program . Modofication to that is normlised value.


thnks for your great help.

Added after 4 minutes:

hii frn


I am n't getting programs for above link. pls help me.


thanks

I am very glad

any one know code for iterative sampling method

上一篇:square microstrip antenna
下一篇:最后一页

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top