basic4.m
来自「计算9格均匀电流面元阵方向图的matlab程序」· M 代码 · 共 26 行
M
26 行
[theta,phi]=meshgrid(0:0.02*pi:2*pi,0:pi/12:1.1*pi);
the=pi/2-theta;
AE=platecomp(the,phi);
[x,y,z]=sph2cart(phi,theta,AE);
axis off
axis equal
[theta,phi]=meshgrid(0:0.01*pi:2*pi,0:pi/12:1.1*pi);
the=pi/2-theta;
phi=ones(size(phi))*pi;
AE1=platecomp(the,phi);
phi=ones(size(phi))*pi/4;
AE2=platecomp(the,phi);
% subplot(1,3,1);
% mesh(x,y,z,'EdgeColor','black'); axis off; axis equal;
% subplot(1,3,2);
% polar(theta(1,:),AE1(1,:),'-k')
% subplot(1,3,3);
% polar(theta(1,:),AE2(1,:),'-k')
surf(x,y,z); colormap(winter);axis off; axis equal;
figure;polar(theta(1,:),AE1(1,:),'-k')
% figure;polar(theta(1,:),AE2(1,:),'-k')
zz=inline('platecomp(the,phi).^2.*sin(the)','the','phi');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?