% Demo of the poly and polyval functions
% Minas Spetsakis, Nov. 2017

rr = [-1, 2, 4, 6];
pp=poly(rr)
fplot(@(x)polyval(pp,x),[-2,7])
hold on
fplot(@(x)polyval(3*pp,x),[-2,7])
hold off
