Azzera filtri
Azzera filtri

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

13 visualizzazioni (ultimi 30 giorni)
Salik Mallick
Salik Mallick il 15 Set 2020
Modificato: David il 15 Set 2020
%% 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 Commenti
BOB MATHEW SYJI
BOB MATHEW SYJI il 15 Set 2020
Can you please elaborate the question
Walter Roberson
Walter Roberson il 15 Set 2020
Are you sure you want D to be in degrees? cos() expects radians.

Accedi per commentare.

Risposta accettata

Ameer Hamza
Ameer Hamza il 15 Set 2020
Modificato: Ameer Hamza il 15 Set 2020
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)

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by