spline

2
Spline Interp1(tx,ty,x,’spline’) Ejemplo 43, pag 93 Usando Spline, hallar f(3.75), donde f(x) es el polinomio que interpola los puntos X=1 3 4 Y= 2 5 3 >> xx=[1 3 4]; >> yy=[2 5 3]; >> z=interp1(xx,yy,3.75,'spline') z = 3.7188 DE OTRA FORMA function z=fi(x) xx=[1 3 4]; yy=[2 5 3]; z=interp1(xx,yy,x,'spline'); >> fi(3.75) ans = 3.7188 EJERICCIO PENDIENTE Usando spline, hallar h(a/2), donde h(x) es el polinomio que interpola los puntos X=-a a 2a 3a

Upload: joseph-jason-gomez-quispe

Post on 30-Sep-2015

214 views

Category:

Documents


2 download

DESCRIPTION

EJERCICIO EN MATLAB CON EL COMANDO SPLINE

TRANSCRIPT

SplineInterp1(tx,ty,x,spline)Ejemplo 43, pag 93Usando Spline, hallar f(3.75), donde f(x) es el polinomio que interpola los puntosX=1 3 4Y= 2 5 3>> xx=[1 3 4];>> yy=[2 5 3];>> z=interp1(xx,yy,3.75,'spline')z = 3.7188

DE OTRA FORMAfunction z=fi(x)xx=[1 3 4];yy=[2 5 3];z=interp1(xx,yy,x,'spline');

>> fi(3.75)ans = 3.7188

EJERICCIO PENDIENTE Usando spline, hallar h(a/2), donde h(x) es el polinomio que interpola los puntosX=-a a 2a 3aY= 2 6 3 9