Home > K25104 > Interpolation > Lagrangecardinal_script.m

Lagrangecardinal_script

PURPOSE ^

Usage example of Lagrangecardinal

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example of Lagrangecardinal
 related to Exercise 3.1

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example of Lagrangecardinal
0002 % related to Exercise 3.1
0003 
0004 nodes = [0; 1; 2; 3];
0005 values = [1; 1; 1; 1];
0006 plot(nodes, values, 'o');
0007 hold on;
0008 for k= 1:size(nodes,1);
0009     L = Lagrangecardinal( nodes,k )
0010     ezplot(matlabFunction(L),[-1, 4]);
0011 end
0012 title([]);
0013

Generated on Mon 18-Jan-2016 10:25:49 by m2html © 2005