MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB数学相关] 请教一个关于matlab画图的问题 (https://www.labfans.com/bbs/showthread.php?t=20697)

rxxcow 2014-10-14 22:13

请教一个关于matlab画图的问题
 
2 个附件
我的程序:
function Dipole(l)
%绘制对称振子天线E面方向图
%l为对称振子天线总电长度

x=0:pi/40:2*pi;
y=(cos(pi*l*cos(x))-cos(pi*l))./sin(x);
polar(x,y)

我在Command窗口输入:
>> Dipole(0.5)

结果如下:
[ATTACH]3333[/ATTACH]

理论应该如下:
[ATTACH]3334[/ATTACH]

请问为什么输出图形没有下半部分?错在哪了?:confused::confused:


所有时间均为北京时间。现在的时间是 14:08

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.