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