📄 c4ex8.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -