I am trying to implement convolution using fourier transform property but i am not getting exactly same shape of output that i get by using conv command
First portion of graph obtained using conv command is same as that obtained using fourier transform property but second portion of graph obtained using conv command is inverted as compared to that obtained using fourier transform property
My MATLAB code is below
clc;clear;close all
syms t w
x = exp(-t).*cos(2*pi*t).*heaviside(t);
h = exp(-t).*heaviside(t);
X = fourier(x, w);
H = fourier(h, w);
X1 = ifourier(X*H, t);
ezplot(X1, [-2 2 -0.1 0.15]);
title('using fourier technique')
t=-1:0.01:1
x = exp(-t).*cos(2*pi*t).*heaviside(t);
h = exp(-t).*heaviside(t);
figure
y=conv(h,x)*0.01
plot(y)
title('using conv command')

