MATLAB: Assistance with simple error

errorsymbolic

Hi,
I am copying the code below from this page, but it says error
"Undefined function 'a' for input arguments of type 'char'."
Could anybody tell me what is wrong?
Thanks
a := [6, 9, 17, 0, 13, 9, 9, 12, 12, 12]:
b := [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14]:
q := plot::QQplot(a, b):
plot(q)

Best Answer

Provided you have the symbolic toolkit, at the MATLAB command line use
a = [6, 9, 17, 0, 13, 9, 9, 12, 12, 12];
b = [7, 8, 20, 2, 11, 8, 9, 12, 13, 15, 2, 14];
feval(symengine, 'plot::QQplot', a, b);