It is not incomplete. The Symbolic Math Toolbox assumes that you want a symbolic result unless you tell it otherwise.
Try this:
syms f(x) x
f(x) = cos(x) - 2*x + 3;
f1 = f(1)
vpa_f1 = vpa(f1)
producing:
f1 =
cos(1) + 1
vpa_f1 =
1.540302305868139717400936607443
Also, while ‘a picture may be worth a thousand words’, here on MATLAB Answers, actual posted code (copied from your Editor or Command Window and pasted here) is worth a thousand pictures of it!
Best Answer