MATLAB: Error using plot ; spectrum of function

plot

Why I get error using the following code?
syms t w;
syms g h;
g=fourier(exp(-1*(t^2)));
h=abs(g);
w=-10.1:10.1;
plot(w,h);

Best Answer

plot(w, subs(h))