main.m
来自「拉哥朗日插值算法的实现,MATLAB编写,仅供参考.」· M 代码 · 共 17 行
M
17 行
%% it is main function to realize lagrange interpolation%%
%% the vector X is a collection of interpolation points %%
%% the vector F is a collection of interpolated function values%%
%% Obviously,the vector X should be the same size as F %%
%% **************the author:程剑光**********************%%
%% ************chengjianguang@163.com*******************%%
%% this programme copyrighted by the physics and %%
%% tele-communication school in scnu, 2006.4.17 %%
%% if you have some ways to improve this arithmetic, %%
%% please make contact with me, thank you very much! %%
%% FF the the result of this programme %%
clear;
clc;
X=[4,6.25,9,16]
F=[2,2.5,3,4]
XX=7
FF=lagrange(X,F,XX)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?