資源簡介
計算任意位置的圓形線圈和方形線圈的互感。在MATLAB的GUI界面上可以設定線圈參數和位置,并在圖像上顯示。給定參數后可以計算出給定位置處線圈的互感,并可以生成互感隨線圈位置變化的曲線。

代碼片段和文件信息
function?varargout?=?hugan(varargin)
%HUGAN?M-file?for?hugan.fig
%??????HUGAN?by?itself?creates?a?new?HUGAN?or?raises?the?existing
%??????singleton*.
%
%??????H?=?HUGAN?returns?the?handle?to?a?new?HUGAN?or?the?handle?to
%??????the?existing?singleton*.
%
%??????HUGAN(‘Property‘‘Value‘...)?creates?a?new?HUGAN?using?the
%??????given?property?value?pairs.?Unrecognized?properties?are?passed?via
%??????varargin?to?hugan_OpeningFcn.??This?calling?syntax?produces?a
%??????warning?when?there?is?an?existing?singleton*.
%
%??????HUGAN(‘CALLBACK‘)?and?HUGAN(‘CALLBACK‘hobject...)?call?the
%??????local?function?named?CALLBACK?in?HUGAN.M?with?the?given?input
%??????arguments.
%
%??????*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?hugan
%?Last?Modified?by?GUIDE?v2.5?27-Dec-2016?21:28:43
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@hugan_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@hugan_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
function?hugan_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???unrecognized?PropertyName/PropertyValue?pairs?from?the
%????????????command?line?(see?VARARGIN)
%?Choose?default?command?line?output?for?hugan
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
set(handles.x1‘enable‘‘off‘)
set(handles.y1‘enable‘‘off‘)
set(handles.z1‘enable‘‘off‘)
set(handles.yt‘enable‘‘off‘)
set(handles.dl‘enable‘‘off‘)
set(handles.x0‘enable‘‘off‘)
set(handles.y0‘enable‘‘off‘)
set(handles.z0‘enable‘‘off‘)
set(handles.xianshi‘visible‘‘off‘)
p1=get(handles.geiding‘Min‘);
handles.s1=p1;
p2=get(handles.bianhua‘Min‘);
handles.s2=p2;
guidata(hobject?handles);
function?varargout?=?hugan_OutputFcn(hobject?eventdata?handles)
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?line?output?from?handles?structure
varargout{1}?=?handles.output;
function?xianshi_Callback(hobject?eventdata?handles)
%?hobject????handle?to?xianshi?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?o
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????79845??2016-12-27?21:29??互感計算界面\hugan.fig
?????文件??????30348??2016-12-27?21:28??互感計算界面\hugan.m
?????文件??????14510??2016-12-27?21:29??互感計算界面\JLU.png
?????文件????????143??2013-06-15?22:17??互感計算界面\part1.m
?????文件????????160??2013-06-15?22:17??互感計算界面\part2.m
?????文件????????151??2013-06-15?22:17??互感計算界面\part3.m
?????文件????????141??2013-06-15?22:17??互感計算界面\part4.m
?????目錄??????????0??2016-12-27?21:28??互感計算界面
-----------?---------??----------?-----??----
???????????????125298????????????????????8
- 上一篇:船舶運動控制
- 下一篇:ROF 去噪 matlab
評論
共有 條評論