Description: Matlab中没有现成的Lagrange插值函数,必须编写一个M文件实现Lagrange插值。
设n个节点数据以数组x0,y0 输入(注意Matlat的数组下标从1开始),m 个插值点以数组 x输入,输出数组y 为 m个插值。
编写一个名为lagrange.m的M文件。-Matlab is not off-the-shelf Lagrange interpolation function, we must realize the preparation of an M file Lagrange interpolation. N nodes based data to an array of x0, y0 input (Note Matlat subscript of the array starting at 1), m a x interpolation points to the array input and output array y for m months interpolation. Lagrange.m the preparation of a M-file. Platform: |
Size: 1024 |
Author:贺鼎宏 |
Hits: