c4ex8.m

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

M
9
字号
%	Plot of signal and spectra of Example 4-8%t = -2:.005:2;			% Define the t and f axesf = -20:.005:20;x = pls_fn(t/2).*cos(20*pi*t);	% Use the predefined pulse function to build up x(t)X = sinc(2*(f - 10)) + sinc(2*(f + 10));	% sinc( ) is a built-in MATLAB functionsubplot(2,1,1), plot(t, x), xlabel('t'), ylabel('x1(t)')subplot(2,1,2), plot(f, X), xlabel('f'), ylabel('X1(f)') 

⌨️ 快捷键说明

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