【传输天线】微波传输线及天线方向图相关计算【含GUI Matlab源码 3603期】

在这里插入图片描述

⛄一、微波传输线及天线方向图相关计算

微波技术与天线工程中经常遇到传输线的计算问题, 本软件主要用于传输线的相关计算,界面友好,操作简单,可广泛的用于传输线理论中的相关的计算,软件界面如下:在这里插入图片描述
功能简介及使用
该软件的计算模型:
在这里插入图片描述
用户可根据实际情况改变相应参数,看来计算自己所需的参数。

2 使用方法
(1) 直接在matlab2019及以上环境界面中,在GUI环境下打开trline3.fig,可以得到上述操作界面。
(2) 根据实际情况输入参数,如特征阻抗,波源阻抗,负载阻抗,波源电压,距离负载的距离,传输线长。

⛄二、部分源代码

function varargout = trline3(varargin)
% TRLINE3 M-file for trline3.fig
% TRLINE3, by itself, creates a new TRLINE3 or raises the existing
% singleton*.
%
% H = TRLINE3 returns the handle to a new TRLINE3 or the handle to
% the existing singleton*.
%
% TRLINE3(‘CALLBACK’,hObject,eventData,handles,…) calls the local
% function named CALLBACK in TRLINE3.M with the given input arguments.
%
% TRLINE3(‘Property’,‘Value’,…) creates a new TRLINE3 or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before trline3_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to trline3_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

% Copyright 2002-2003 The MathWorks, Inc.

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

% Last Modified by GUIDE v2.5 15-Feb-2010 15:24:29

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name’, mfilename, …
‘gui_Singleton’, gui_Singleton, …
‘gui_OpeningFcn’, @trline3_OpeningFcn, …
‘gui_OutputFcn’, @trline3_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 trline3 is made visible.
function trline3_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 trline3 (see VARARGIN)
global Zc Zl Zg E z L D1 m kethe
global disp_T disp_p disp_u disp_i disp_zin disp_P sel1 sel2
% Choose default command line output for trline3
handles.output = hObject;
disp_T = handles.text15;
disp_p = handles.text16;
disp_u = handles.text17;
disp_i = handles.text20;
disp_zin = handles.text19;
disp_P = handles.text18;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes trline3 wait for user response (see UIRESUME)
% uiwait(handles.figure1);

% — Outputs from this function are returned to the command line.
function varargout = trline3_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 Zc_Callback(hObject, eventdata, handles)
% hObject handle to Zc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

% Hints: get(hObject,‘String’) returns contents of Zc as text
% str2double(get(hObject,‘String’)) returns contents of Zc as a double
global Zc;
Zc = str2double(get(hObject,‘String’));
if isnan(Zc)
errordlg(‘you must input a number’);
set(handles.Zc, ‘string’, ‘’);
elseif (~(imag(Zc)==0))
errordlg(‘Zc must be a real number’);
set(handles.Zc, ‘string’, ‘’);
elseif(Zc<=0)
errordlg(‘Zc must be larger than zero’);
set(handles.Zc, ‘string’, ‘’);
end;

% — Executes during object creation, after setting all properties.
function Zc_CreateFcn(hObject, eventdata, handles)
% hObject handle to Zc (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc
set(hObject,‘BackgroundColor’,‘white’);
else
set(hObject,‘BackgroundColor’,get(0,‘defaultUicontrolBackgroundColor’));
end

⛄三、运行结果

在这里插入图片描述

⛄四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1] 高俊伟.基于深度学习的OFDM信号检测算法研究[D].哈尔滨工程大学

3 备注
简介此部分摘自互联网,仅供参考,若侵权,联系删除

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Matlab领域

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值