sa_fig3_14.m

来自「智能天线Matlab版源代码」· M 代码 · 共 49 行

M
49
字号
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                                                        %%%% ****************************************************** %%%% * Smart Antennas for Wireless Applications w/ Matlab * %%%% ****************************************************** %%%%                                                        %%%% Chapter 3: Fig 3.14                                    %%%%                                                        %%%% Author: Frank Gross                                    %%%% McGraw-Hill, 2005                                      %%%% Date:  9/3/2004                                        %%%%                                                        %%%% This code creates a 3-D plot of Infinitesimal Dipole   %%%%     Radiation using the MATLAB function ezmesh.        %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      %%------------------- Define Variables:---------------------%%% fx - inline object for x spherical coordinate              %% fy - inline object for y spherical coordinate              %% fz - inline object for z spherical coordinate              %%%----------------------------------------------------------%%%%-------------- Create inline object function -------------%%fx=inline('sin(theta)^2*sin(theta)*cos(phi)');fy=inline('sin(theta)^2*sin(theta)*sin(phi)');fz=inline('sin(theta)^2*cos(theta)');%%---------------------- Plot results ----------------------%%ezmesh(fx,fy,fz,[0,2*pi,0,pi],100)title('\bf\itFig 3.14 - 3-D Plot of Infinitesimal Dipole Radiation')% Alter image characteristicsshading interpcolormap(gray)brighten(.5)camlight(20,-20,'infinite')material dulllighting phong% Alter Axesaxis squareaxis equalset(gca,'XDir','reverse','YDir','reverse')view(-63,24)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?