How can I plot cosine/sine wave with exponential function?
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all,
I have some rusty about plotting cosine/sine with exponential function, can someone help me with this function?
y(t)= -(1/2)cos(t)+(1/2)exp(-t)+(1/2)t*exp(-t)?
Thank you very much
Twinsen
0 commentaires
Réponses (2)
Bhaskar R
le 10 Jan 2020
Fs = 10000; % samples persecond
t = (0:1/Fs:1-(1/Fs)); % seconds
A = 1/2; % amplitude
y = -A*cos(t)+A*exp(-t)+A*t.*exp(-t); % your equation
plot(t, y), xlabel('Samples '), ylabel('Amplitude'); % plot signal
grid on
0 commentaires
Avinash Kumar
le 25 Mar 2022
Fs = 10000; % samples persecond t = (0:1/Fs:1-(1/Fs)); % seconds A = 1/2; % amplitude y = -A*cos(t)+A*exp(-t)+A*t.*exp(-t); % your equation plot(t, y), xlabel('Samples '), ylabel('Amplitude'); % plot signal grid on
0 commentaires
Voir également
Catégories
En savoir plus sur Discrete Fourier and Cosine Transforms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!