Wednesday, August 20, 2014

MATLAB codings to find laplace transform of some mathematical functions

Laplace Transform is widely used to convert time domain differential equation into frequency domain equations.This is the basic idea that you should be concerned with.Now let's get started with the codes:-

  • Find the laplace transform of f(t)=t
>> syms s t;
>> ft= t;
>> laplace (ft)  {after this press enter}
output=1/s^2


  • Find the laplace transform of t^2.
>> syms s t;
>> ft=t^2;
>> laplace (ft)
output= 2/s^3


  • Find the laplace transform of e^-5t.
>> syms s t;
>> ft=exp(-5*t);
>> laplace (ft)
output=1/s+5


  • Find the laplace transform of t^2.e^-5t
>> syms s t;
>> ft=(t^2)*[exp(-5*t)];
>> laplace (ft)
output= 1/(s+5)^3


  • Find the laplace transform of sin5t.
>> syms s t;
>> ft=sin(5*t);
>> laplace (ft)
output=5/(s^2+25)


  • Find the laplace transform of cos3t.
>> syms s t;
>>ft= cos(3*t);
>> laplace (ft)
output=s/(s^2+9)


  • Find the laplace transform of e^-5t(sin3t).
>> syms s t;
>> ft=[exp(-5*t)]*sin(3*t);
>> laplace (ft)
output= 3/(s+5)^2+9

If you experience any problem using this codes,do write it in the comment box!!That's all for today.

No comments:

Post a Comment