x(t) = A sin(w0t + Ø) exp(-at)
조회 수: 4 (최근 30일)
이전 댓글 표시
Construct an exponentially damped sinusoidal signal given by x(t) = A sin(w0t + Ø) exp(-at)
댓글 수: 0
답변 (1개)
Yazan
2021년 8월 10일
편집: Yazan
2021년 8월 10일
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');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!