【电磁】基于Matlab模拟电偶极子电磁场附GUI界面

​ ✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进。

个人主页:Matlab科研工作室

个人信条:格物致知。

更多Matlab仿真内容点击

智能优化算法  神经网络预测 雷达通信  无线传感器

信号处理 图像处理 路径规划 元胞自动机 无人机

⛄ 内容介绍

理论推导了电偶极子的辐射公式,得到了电偶极子的磁场和电场表达式;电偶极子的总辐射功率和辐射方向增益.并应用MATLAB语言编程得到电偶极子的二维,三维模型图,仿真得到电偶极子阵列辐射特性图.结果可对于电偶极子的电磁特性研究提供参考.

⛄ 部分代码

function varargout = dianoujizi(varargin)

% dianoujizi MATLAB code for dianoujizi.fig

%      dianoujizi, by itself, creates a new dianoujizi or raises the existing

%      singleton*.

%

%      H = dianoujizi returns the handle to a new dianoujizi or the handle to

%      the existing singleton*.

%

%      dianoujizi('CALLBACK',hObject,eventData,handles,...) calls the local

%      function named CALLBACK in dianoujizi.M with the given input arguments.

%

%      dianoujizi('Property','Value',...) creates a new dianoujizi or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before dianoujizi_OpeningFcn gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to dianoujizi_OpeningFcn via varargin.

%

%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one

%      instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help dianoujizi

% Last Modified by GUIDE v2.5 03-May-2013 20:22:55

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name',       mfilename, ...             %GUI结构

                   'gui_Singleton',  gui_Singleton, ...

                   'gui_OpeningFcn', @dianoujizi_OpeningFcn, ...

                   'gui_OutputFcn',  @dianoujizi_OutputFcn, ...

                   'gui_LayoutFcn',  [] , ...

                   'gui_Callback',   []);

if nargin && ischar(varargin{1})

    gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

    gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before dianoujizi is made visible.

function dianoujizi_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject    handle to figure

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% varargin   command line arguments to dianoujizi (see VARARGIN)

set(handles.a_edit,'String',2);  %设置默认值为2

set(handles.b_edit,'String',2);  %设置默认值为2

% Choose default command line output for dianoujizi

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes dianoujizi wait for user response (see UIRESUME)

% uiwait(handles.figure1);

⛄ 运行结果

【电磁】基于Matlab模拟电偶极子电磁场附GUI界面_第1张图片

⛄ 参考文献

[1]陈庆朋, 侯欣, 杨其利,等. 电偶极子电磁场特性的MATLAB仿真研究[J]. 枣庄学院学报, 2017, 34(5):4.

❤️ 关注我领取海量matlab电子书和数学建模资料

❤️部分理论引用网络文献,若有侵权联系博主删除

 

你可能感兴趣的:(物理应用,matlab,开发语言)