matlab脉冲发生器 脉冲发生器matlab程序.doc
文本预览下载声明
matlab脉冲发生器 脉冲发生器matlab程序
function p=pulsegen(fs,T,edge,type,f,opt);
%p=pulsegen(fs,T,edge,type,f,opt);
%a signal generation program
%fs is the sampling frequency
%T is the total signal length
%edge is a decay parameter for some waveforms
% it is used in #39;gaussian#39;, #39;monocycle#39;, #39;biexponential#39;, #39;mexican hat#39;, #39;sinc#39;, #39;double sinc#39;, #39;sinc squared#39;
% and windowed sweep
% it is mostly a parameter to describe how much the edge of the pulse is decayed.
%type is the type of the waveform desired
% allowable types are #39;gaussian#39;, #39;square#39;, #39;triangle#39;, #39;monocycle#39;,
% #39;biexponential#39;, #39;mexican hat#39;, #39;sinc#39;, #39;double sinc#39;, #39;sinc squared#39;,#39;sweep#39;, and #39;windowed sweep#39;
%f is the modulation frequency if left out it is assumed 0.
%opt is an optional argument for pulse waveforms requiring a lower and higher frequency % it is used in #39;double sinc#39; ,#39;sweep#39; and #39;windowed sweep#39; for the low and high frequency. % the pulses are always normalized to a peak amplitude of 1
显示全部