How to plot that?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello! How to plot that?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/408280/image.jpeg)
1 件のコメント
Mohamad
2020 年 11 月 9 日
Hi , you must mention the following :
f : sinusoid frequency .
alpha : Attenuation .
A
Phi : phase shift
採用された回答
David Hill
2020 年 11 月 9 日
phi=.1;%not sure what you what
alpha=2*log(10);
f=4;
A=1;
t=0:.001:1;
f=@(t)A*exp(-alpha*t).*cos(2*pi*f*t+phi);
plot(t,f(t));
その他の回答 (1 件)
KSSV
2020 年 11 月 9 日
A=10;
f=1000;
n=5;
T=1/f;
t=[0:T/100:n*T];
s=A*exp(-t*1000).*sin(2*pi*f*t);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!