write a program To represent basic signals (Unit Step, unit impulse, ramp, exponential, sine, and cosine) dsp lab manual - C C++ Java Programs - Examples

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Wednesday, December 7, 2011

write a program To represent basic signals (Unit Step, unit impulse, ramp, exponential, sine, and cosine) dsp lab manual


AIM: - To represent basic signals (Unit Step, unit impulse, ramp, exponential, sine, and cosine)

PROGRAMS: -

Unit Impulse: -

% Program for the generation of unit impulse signal
clc;
clear all;
close all;
t = -2:1:2;
y=[zeros(1,2),ones(1,1),zeros(1,2)];
subplot (2,2,1);
stem (t,y);
ylabel ('Amplitude-->');
xlabel ('(a)n-->'); 

OUTPUT



No comments:

Post a Comment