필터 지우기
필터 지우기

Laplace Transform of f(t)=Cos[5t-45^°]

조회 수: 13 (최근 30일)
Salik Mallick
Salik Mallick 2020년 9월 15일
편집: David 2020년 9월 15일
%% Problem P2_(Quiz1)
display('Problem P2_(Quiz1)')
syms S D f t;
D = rad2deg(-pi/4);
f = cos(5*t+D);
S = laplace(f)
  댓글 수: 2
BOB MATHEW SYJI
BOB MATHEW SYJI 2020년 9월 15일
Can you please elaborate the question
Walter Roberson
Walter Roberson 2020년 9월 15일
Are you sure you want D to be in degrees? cos() expects radians.

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 15일
편집: Ameer Hamza 2020년 9월 15일
Making a code complex just for the sake of it is a pointless question, especially for this forum. However, the following code shows an alternate method to calculate Laplace transform using its definition
syms s t;
assume(real(s) > 0);
D = rad2deg(-pi/4);
f = cos(5*t+D);
S = int(f*exp(-s*t), t, 0, inf)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by