- 10
- 0
- 约13.66万字
- 约 20页
- 2016-09-30 发布于河南
- 举报
interp1
interp1
function varargout = interp1(varargin)
%INTERP1 1-D interpolation (table lookup)
% YI = INTERP1(X,Y,XI) interpolates to find YI, the values of the
% underlying function Y at the points in the array XI. X must be a
% vector of length N.
% If Y is a vector, then it must also have length N, and YI is the
% same size as XI. If Y is an array of size [N,D1,D2,...,Dk], then
% the interpolation is performed for each D1-by-D2-by-...-Dk value
% in Y(i,:,:,...,:).
% If XI is a vector of length M, then YI has size [M,D1,D2,...,Dk].
% If XI is an array of size [M1,M2,...,Mj], then YI is of size
% [M1,M2,...,Mj,D1,D2,...,Dk].
%
% YI = INTERP1(Y,XI) assumes X = 1:N, where N is LENGTH(Y)
% for vector Y or SIZE(Y,1) for array Y.
%
% Interpolation is the same operation as table lookup. Described in
% table lookup terms, the table is [X,Y] and INTERP1 looks-up
% the elements of XI in X, and, based upon their location, returns
% values YI interpolated within the elements of Y.
%
% YI = INTERP1(X,Y,XI,METHOD) specifies alternate methods.
% The default is linear interpolation. Use an empty matrix [] to specify
% the default. Available methods are:
%
% nearest - nearest neighbor interpolation
% linear - linear interpolation
% spline - piecewise cubic spline interpolation (SPLINE)
% pchip - shape-preserving piecewise cubic interpolation
% cubic - same as pchip
% v5cubic - the cubic interpolation from MATLAB 5, which does not
% extrapolate and uses spline if X is not equally
% spaced.
%
% YI = INTERP1(X,Y,XI,METHOD,extrap) uses the specified method for
% extrapolation for any elements of XI outside the interval spanned by X.
% Alternatively, YI = INTERP1(X,Y,XI,METHOD,EXTRAPVAL) replaces
% the values outside of the interval spanned by X with EXTRAPVAL.
% NaN and 0 are often used for EXTRAPVAL. The default extrapolation
% behavior with four input arguments is ex
您可能关注的文档
最近下载
- 河北广谋新材料科技有限公司年产600万平方米复合革及隔音布、400万平方米新型复合网项目环境影响报告表.docx VIP
- 部编版语文五年级下册第七单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第六单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第五单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第四单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第三单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第二单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第一单元教材解读大单元集体备课.pptx VIP
- 车工 (数控车床)理论知识考核要素细目表四级.pdf VIP
- 本科课程《基础护理学》教案,第十二章给药.doc VIP
原创力文档

文档评论(0)