Code covered by the BSD License  

Highlights from
MATLAB 7 Fundamentos

image thumbnail

MATLAB 7 Fundamentos

by

 

09 Aug 2004 (Updated )

Companion Software for the book "MATLAB 7 Fundamentos"

cap3_polyfit_exemplo.m
% cap3_polyfit_exemplo ( )
echo on
% Pontos (X,Y)
x=1:10;
y=[2 3 3.5 3.5 3 3 2.5 2.5 3 4];
% Polinomio de grau 3
p3=polyfit(x,y,3)

Contact us