Sunday, December 5, 2010
1
Program
Matlab Program for exponential wave
Brief Theory
In Exponential Wave, the amplitude varies exponentially with respect to time. Exponential Wave is expressed as y=a*exp(b*t) where a is a constant and b is the amplitude and t is the time. Exponential wave may be positive or negative exponential according to the amplitude. If amplitude is positive it is positive exponential and if amplitude is negative it is negative exponential. In this program I have written the program for positive and negative exponential both continuous and discrete.Program
% positive exponential continous
clc; %clear command window
t=0:.1:1;
a=input('enter the amplitude');
y=a*exp(5*t); %calculation of exponential wave
subplot(221); % breaks figure window into 2*2 matrix and select 1st axis for current plot
plot(t,y); %continous plot
title('positive exponential continous');
%positive exponential discrete
t=0:.1:1;
y=a*exp(5*t);
subplot(222); %breaks figure window into 2*1 matrix and select 2nd axis for current plot
stem(t,y); %discrete plot
xlabel('time');
ylabel('amplitude');
title('positive exponential discrete');
% negative exponential continous
t=0:.1:1;
y=a*exp(-5*t);
subplot(223);
plot(t,y);
title('negative exponential continous');
xlabel('time');
ylabel('amplitude');
%negative exponential discrete
t=0:.1:1;
y=a*exp(-5*t);
subplot(224);
stem(t,y);
title('negative exponential discrete');
xlabel('time');
ylabel('amplitude');
This post was written by: noufel n backer
Subscribe to:
Post Comments (Atom)
1 Responses to “Matlab Program for exponential wave”
February 20, 2011 at 6:02 AM
i want the program to advance or delay the signal...
by taking input from user whether to advance or delay & by what number?....
please use switch statement?....
Post a Comment