In Matlab Define a function x as the constant value 1 and fi
In Matlab..
Define a function x as the constant value 1 and find the Fourier transform of this function and record your result. Take the Fourier transform of a cosine with a radian frequency of 1 and record your result.Solution
syms x
f = x^0; %instead of constant 1 I write it as x^0
fourier(f)
ans =
2*pi*dirac(w)
----------------------------------------------------------
syms x
f =cos(x);
fourier(f)
ans =
pi*(dirac(w - 1) + dirac(w + 1))
