examp25.m

来自「ADSP TOOLBOX: Version 2.0 and gui m-file」· M 代码 · 共 11 行

M
11
字号

clc,echo on 
%EXAMPLE 25 
n=0:50;                    % Create a DT index 
x=cos(0.2*pi*n);h=1:8;     % Signals x and h 
y=conv(x,h);               % Response using convolution
y=y(1:length(n));          % Truncate to length of x 
dtplot(n,x,'o'),pause(2)   % Plot input
dtplot(n,y,'o')            % Plot response
echo off %end of example

⌨️ 快捷键说明

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