⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 la.m

📁 fit programme for a serials of data
💻 M
字号:
function y1=L(x,y,x1)
% input x is a vector that contains a list of abscissas
%       y is a vector that cntains a list of ordinates
%       x1 is the number at where the interpolation is to be obained
% output y1 is the la interpolation at x1
n=length(y);
y1=0;
for k=1:n
   p=1;
   for j=1:n
      if j~=k
         p=p*(x1-x(j))/(x(k)-x(j)); 
      end
   end
  y1=y1+p*y(k); 
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -