The proper syntax to find the value of f at x=5 is syms x f=3*x^2
subs(F,x,,5)
subs(f,5,x)
subs(5,f,x)
subs(f,x,5)