diff --git a/samples/plot,functions,polyval.m b/samples/plot,functions,polyval.m new file mode 100644 index 0000000..bbb331d --- /dev/null +++ b/samples/plot,functions,polyval.m @@ -0,0 +1,10 @@ +fplot( @(x) x^2 * cos(x), [-4 4],'r*' ) +hold on + +p= [1,2,3,4,5] +x=1:0.1:10 +y=polyval(p,x) +plot(x,y) + + +polyfit(x,y,n) // n è il grado \ No newline at end of file