MATLAB Program for Dicrete Unit Impulse Function
Program:
n=-4:4;
delta_n=[0,0,0,0,1,0,0,0,0];
stem(n,delta_n);
xlabel('Time Sample');
ylabel('Amplitude');
Video Lectures:
2nd Method
Program:
n=-100:100;
delta_n=[zeros(1,100) 1 zeros(1,100)];
stem(n,delta_n);
xlabel('Time sample');
ylabel('Amplitude');
No comments