-
大小: 15KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-01-03
- 語言: Matlab
- 標(biāo)簽:
資源簡(jiǎn)介
基于MATLB GUI的信號(hào)發(fā)生器可以產(chǎn)生正弦波、方波、指數(shù)信號(hào)及任意表達(dá)式的信號(hào),可以設(shè)定指定信號(hào)的頻率、占空比、放大系數(shù)、衰減系數(shù)等參數(shù),也支持輸入任意信號(hào)的表達(dá)式。同時(shí)具有頻譜分析的功能,設(shè)定采樣頻率后即可對(duì)信號(hào)進(jìn)行頻譜分析。

代碼片段和文件信息
function?varargout?=?xinhao(varargin)
%?XINHAO?MATLAB?code?for?xinhao.fig
%??????XINHAO?by?itself?creates?a?new?XINHAO?or?raises?the?existing
%??????singleton*.
%
%??????H?=?XINHAO?returns?the?handle?to?a?new?XINHAO?or?the?handle?to
%??????the?existing?singleton*.
%
%??????XINHAO(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?XINHAO.M?with?the?given?input?arguments.
%
%??????XINHAO(‘Property‘‘Value‘...)?creates?a?new?XINHAO?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?xinhao_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?xinhao_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?xinhao
%?Last?Modified?by?GUIDE?v2.5?24-May-2013?22:48:32
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@xinhao_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@xinhao_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?xinhao_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?xinhao?(see?VARARGIN)
%?Choose?default?command?line?output?for?xinhao
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
set(handles.ZHANKONGBI‘enable‘‘off‘)
set(handles.shuaijian‘enable‘‘off‘)
set(handles.pinlv‘enable‘‘off‘)
set(handles.FUDU‘enable‘‘off‘)
set(handles.xianshi‘visible‘‘off‘)
set(handles.hanshu‘visible‘‘off‘)
set(handles.caiyangpinlv‘enable‘‘off‘)
set(handles.shijian‘enable‘‘off‘)
function?varargout?=?xinhao_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?on_Callback(hobject?eventdata?handles)
%?hobject????handle?to?on?(see?GCBO)
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?u
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????11387??2013-05-27?22:52??軟面板信號(hào)發(fā)生器測(cè)試\xinhao.fig
?????文件??????22911??2013-05-27?23:19??軟面板信號(hào)發(fā)生器測(cè)試\xinhao.m
?????目錄??????????0??2016-05-30?10:07??軟面板信號(hào)發(fā)生器測(cè)試
-----------?---------??----------?-----??----
????????????????34298????????????????????3
評(píng)論
共有 條評(píng)論