aggiunto alcune note su funzioni per polinomi e interpolazione
This commit is contained in:
10
samples/plot,functions,polyval.m
Normal file
10
samples/plot,functions,polyval.m
Normal file
@@ -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 <EFBFBD> il grado
|
||||||
Reference in New Issue
Block a user