作业帮 > 综合 > 作业

知道天线方向函数如下图所示,怎么利用matlab画其方向图

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/21 10:10:27
知道天线方向函数如下图所示,怎么利用matlab画其方向图
知道方向函数,画方向图应该好画吧,偶极子为例:clear all;clc;theta=(0:pi/100:pi)+pi/100;phi=0:pi/100:2*pi;for m=1:length(theta)    E(m)=cos(pi*cos(theta(m))/2)/sin(theta(m));    for n=1:length(phi)        x(m,n)=E(m)*sin(theta(m))*cos(phi(n));        y(m,n)=E(m)*sin(theta(m))*sin(phi(n));        z(m,n)=E(m)*cos(theta(m));    endendsurf(x,y,z);