You can create an impulse function using the zeros command in MATLAB. impulse=[zeros(1,25) 1 zeros(1,25)] creates a sequence with 25 zeros, a single 1, and then another 25 zeros. The stem plot command is more appropriate for discrete functions than the plot command. Use the stem command to plot the impulse so that it is centered at n=0. Turn in a copy of the code and graph.
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
clc
clear all
close all
impulse=[zeros(1,25) 1 zeros(1,25)];
stem(-25:25,impulse);
Kindly revert for any queries
Thanks.
Get Answers For Free
Most questions answered within 1 hours.