How can I plot cosine/sine wave with exponential function?
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
Bhaskar R
2020 年 1 月 10 日
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 件のコメント
Avinash Kumar
2022 年 3 月 25 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!