Write a detailed Matlab Program for the Following question

Write a detailed Matlab Program for the Following question .

Find the Fourier transform of x(t)= 2*e -3t u(t) Take t=-3:0.5:3 Now take the inverse Fourier transform and check if it returns the signal back

Solution

clear all;

close all;

clc;

x1=input(\'enter the first sequence\');

x2=input(\'enter the second sequence\');

l=length(x1);

m=length(x2);

g=wrev(x2);

x1=[x1 zeros(1,(m-1))];

g=[g zeros(1,(l-1))];

x1=fft(x1);

g=fft(g);

y=x1.*g;

y=ifft(y);

subplot(3,1,1);

stem(x1);

xlabel(\'time\');

ylabel(\'amplitude\');

subplot(3,1,2);

stem(g);

xlabel(\'time\');

ylabel(\'amplitude\');

subplot(3,1,3);

stem(y);

xlabel(\'time\');

ylabel(\'amplitude\');

Write a detailed Matlab Program for the Following question . Find the Fourier transform of x(t)= 2*e -3t u(t) Take t=-3:0.5:3 Now take the inverse Fourier trans

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site