c4ex2.m

来自「数字信号处理Matlab实现?中藕糯鞰atlab实现数字信号处理Matlab」· M 代码 · 共 11 行

M
11
字号
%	c4ex2 MATLAB application%syms t w f 									% Define symbolic variablesx = sym('exp(-2*t)*Heaviside(t)')	% Symbolically define signalX = fourier(x)								% Symbolically take the Fourier transformXf = subs(X, 'w', sym('2*pi*f'))		% Change independent variable to f = w/(2*pi) in hertzXf_conj = subs(Xf, 'f' ,sym('-f'))	% Conjugate Fourier transformGf = symmul(Xf, Xf_conj)				% Multiply the Fourier transform and its conjugateezplot(Gf)									% Use the ezplot routine to plot energy spectrum  

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?