Matlab

Inverse Laplace Transform

Ilaplace command used to perform the inverse laplace transform for the given function. Let us consider an example;

F(s) =

 

F= 5*(s+2)/(s*(s^2+9*s+5));

 ilaplace (F)

ans = 9*exp(-2*t)*cos(t)+3 *exp(-2*t)*sin(t)+5

In inverse laplace transform function hyperbolic expression can solved

Sinh(x)=

Cosh(x)=

Fourier Transform In Matlab:

Some numerical methods are used for solving continuous time signals in matlab with Fourier transform. Let us choose an example to plot fourier transform function

f=-6:.01:6;

 X=9*sinc(9*f);

 plot(f,X)

Fast Fourier Transform:

Depending on the length of the sequence being transformed with the DFT the computation of this transform are often time consuming. The Fast Fourier Transform (FFT) is an algorithm for computing the DFT of a sequence during a more efficient manner. MATLAB provides a inbuilt command for computing the FFT of a sequence.

For example, using the same two-frequency signal x(t) used above we can produce a sequence of samples of length N = 150 spaced every Ts = .0003 seconds as shown previously.

Whilethe frequency components are spaced every 1/(N*Ts) Hz and the corresponding frequency values  are from 0 to (N-1)/(N*Ts) Hz as shown below.

In order to plot a fast fourier transform (fft) by using fft command

clear

 N=150;

 ts=.0003;

 deltaf=1/(N*ts);

 t=[0:N-1]*ts;

 x=cos(2*pi*100*t)+cos(2*pi*500*t);

 Xf=fft(x);

 f=[0:N-1]*deltaf;

 plot (f,abs(Xf)

In order to plot a fast fourier transform (fft) we should follow two rules

In order to plot a fast fourier transform (fft) we should follow two rules
Select Ts as large as possible but in order that the very best frequency component in your signal is a smaller amount than 1/2Ts. 2.

After determining the worth of Ts, select N in order that 1/NTs, the frequency resolution is little enough to accurately display your frequency components.

Rajeshwari Chiluveru

Share
Published by
Rajeshwari Chiluveru

Recent Posts

Google Spam Update 2025: Impact, Recovery Guide & SpamBrain Explained

Google released a spam update on 26th of August 2025 and this is affecting a…

2 weeks ago

Google Experiments with Black Sitelink Colors instead of Blue

Google keeps on testing google search display all the time and this time we are…

1 year ago

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

2 years ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

2 years ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

2 years ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

2 years ago