Usage example of Lagrangecardinal related to Exercise 3.1
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