How to plot that?

1 次查看(过去 30 天)
RoBoTBoY
RoBoTBoY 2020-11-9
编辑: RoBoTBoY 2020-11-9
Hello! How to plot that?
  1 个评论
Mohamad
Mohamad 2020-11-9
Hi , you must mention the following :
f : sinusoid frequency .
alpha : Attenuation .
A
Phi : phase shift

请先登录,再进行评论。

采纳的回答

David Hill
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 个评论
RoBoTBoY
RoBoTBoY 2020-11-9
编辑:RoBoTBoY 2020-11-9
I put pi/2 where phi.
What does @(t) mean?

请先登录,再进行评论。

更多回答(1 个)

KSSV
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);

类别

Help CenterFile Exchange 中查找有关 Log Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by