Digital Integrator in MATLAB


% Code for integration of delta signal--

clc
clear all
close all
n=-50:1:50;
num=[1];
den=[1 -1];
e=(n==0);
subplot(2,1,1);
stem(e);
subplot(2,1,2);
h=filter(num,den,e);
stem(h);


No comments