用五个元素绘制宽边天线的辐射方向图

2024-07-01 07:03:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我在画天线的横向辐射方向图 但我不能没有人能帮我 broadside radiation pattern`

import math
from mpl_toolkits.mplot3d import axes3d 
import matplotlib.pyplot as plt

def ArrayFac(angletheta):
    #try to use EQ=sin((N/2)*psi)/((N/2)*PSI)  
    n=5
    d=1
    psi=2*math.pi*d*math.cos(angletheta)
    num=math.sin((n/2)*psi)
    deu=(n/2)*psi
    arrafac=num/deu
    return abs(arrafac)

fig = plt.figure()
ax = plt.axes(projection='3d')

for theta in range(181):
     ax.counter3d(0,theta,ArrayFac(theta))
     ax.legend()
ax.xlabel('x')
ax.ylabel('y')
ax.set_zlabel('z');
ax.show()

Tags: importpltmathsinax方向num天线

热门问题