2019-12-28 13:51:53 431 0

``````               ant.Frequency = 3e8;
N = 5;
lambda = 3e8/ant.Frequency;
d = 0.5*lambda;
k = 2*pi/lambda;

theta = linspace(0,180,180)*pi/180;
phi = linspace(0,360,180) * pi/180;

theta0 = 0*pi/180;
phi0 = 0*pi/180;

PsiX = (k.*d.*sin(theta).*cos(phi) - k*d*sin(theta0)*cos(phi0));
PsiY = (k.*d.*sin(theta).*sin(phi) - k*d*sin(theta0)*sin(phi0));
AF = ((sin(N.*PsiX./2)./(N.*sin(PsiX./2)))).*((sin(N.*PsiY./2)./(N.*sin(PsiY./2))));

Pfun = @(x,y) ((1/N.*(sin(N.*(k.*d.*sin(x).*cos(y) - k.*d.*sin(theta0).*cos(phi0))./2)...
./sin((k.*d.*sin(x).*cos(y) - k.*d.*sin(theta0).*cos(phi0))./2))).^2).*sin(x);

``````

``````    theta = np.linspace(0,180,180)*np.pi/180
phi = np.linspace(0,360,180)*np.pi/180
theta0 = np.array([0])
phi0 = np.array([0])

wavelength = 3E8/3E8
k = 2 * np.pi/wavelength
d = 0.5 * wavelength
N = 5

PsiX = (k*d*np.sin(theta)*np.cos(phi) - k*d*np.sin(theta0)*np.cos(phi0))
PsiY = (k*d*np.sin(theta)*np.sin(phi) - k*d*np.sin(theta0)*np.sin(phi0))

AF = ((np.sin(N*PsiX/2)/(N*np.sin(PsiX/2)))) * ((np.sin(N*PsiY/2)/(N*np.sin(PsiY/2))))

Pfun = lambda x,y: ((1/N*(np.sin(N*(k*d*np.sin(x)*np.cos(y) - k*d*np.sin(theta0)*np.cos(phi0))/2)/np.sin((k*d*np.sin(x)*np.cos(y) - k*d*np.sin(theta0)*np.cos(phi0))/2)))**2)*np.sin(x)
``````

3

6

osscmd，一条命令上传和下载的python工具

wood23 2012-06-30 12:08:18 39860浏览量 回答数 6

5

wood23 2015-02-12 08:11:09 40598浏览量 回答数 5

22

41

OSS FTP工具发布啦

oss-dev 2015-12-23 16:58:56 65996浏览量 回答数 41

42

【精品问答集锦】Python热门问题

249

24

【精品问答】python技术1000问(1)

30

21

OSS新手视频教程！

+关注
0

13401

《SaaS模式云原生数据仓库应用场景实践》

《看见新力量：二》电子书