MATLAB symbolic computation script
I am trying to write a script that graphs the Lagrange interpolation of a given set of points.
The following is the code, which logically seems to be correct, but it keeps throwing an error I do not understand and I am unsure how to fix it as I am unfamiliar with MATLAB's symbolic computation capabilities and syntax.
xanchor=input('x values (enter in vector form): '); %x values of interpolating points
yanchor=input('y values (enter in vector form): '); %y values of interpolating points
The error I am getting is:
??? The following error occurred converting from sym to double:
Error using ==> mupadmex
Error in MuPAD command: DOUBLE cannot convert the input expression into
a double array.
If the input expression contains a symbolic variable, use the VPA
Error in ==> boom at 9
Any help is greatly appreciated.