x(t) = A sin(w0t + Ø) exp(-at)

7 views (last 30 days)
Poorneshwari L L
Poorneshwari L L on 10 Aug 2021
Edited: Yazan on 10 Aug 2021
 Construct an exponentially damped sinusoidal signal given by
x(t) = A sin(w0t + Ø) exp(-at)

Answers (1)

Yazan
Yazan on 10 Aug 2021
Edited: Yazan on 10 Aug 2021
clc, clear
% sampling frequency
fs = 1;
% sampling period
Ts = 1/fs;
% sinusoidal frequency
f0 = 0.01*fs; % Hz
w0 = 2*pi*f0;
% initial phase
phi0 = pi/16;
% time vector
T = 5*(1/f0);
t = 0:Ts:T;
% amplitude
A = 1;
% to control exponential decay
a = 0.01;
% signal
x = A*sin(w0.*t + phi0).*exp(-a.*t);
% plot
figure, plot(t, x, '-o');
grid minor
axis tight
xlabel('Time - sec');
ylabel('Amplitude');

Categories

Find more on Measurements and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!