How to plot that?

조회 수: 2 (최근 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