⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 examp26.m

📁 ADSP TOOLBOX: Version 2.0 and gui m-files
💻 M
字号:

clc,echo on 
%EXAMPLE 26 
n=0:50;x=cos(0.2*pi*n);h=1:8;    % Signals x and h 
a=[1 zeros(1,7)];                % Filter coefficients 
yf=filter(h,a,x);                % Response using filter 
yc=conv(x,h);                    % yc is longer than x and h 
yt=yc(1:length(n));              % So, truncate and find error  
dtplot(n,yt,'o'),pause(2)        % Plot convolution response 
dtplot(n,yf,'o'),pause(2)        % Plot filter response
err=yf-yt;plot(n,err)            % Find and plot error
echo off %end of example

⌨️ 快捷键说明

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