I would like to have a function in Matlab which returns the Fourier transform of the standard mollifier. I have written
syms x
f = exp(1/(x^2-1));
fourier(f)
The problem is, I would like to restrict the domain of that function to -1
syms x
f = exp(1/(x^2-1))&&(-1<x<1);
fourier(f)
though obviously this is incorrect syntax. How can I write this correctly?