鄙人在网上找了许久找不到pchip中关于chckxy函数的相关知识,在matlab命令窗口使用edit
chckxy也打不开该函数,后查资料发现这是一个private函数,也许跟这个有关系吧~现贴出该函数具体内容供参考:
function [x,y,sizey,endslopes] = chckxy(x,y)
%CHCKXY check and adjust input for SPLINE and PCHIP
% [X,Y,SIZEY] = CHCKXY(X,Y)
checks the data sites X and corresponding data
% values Y, making certain that
there are exactly as many sites as values,
% that no two data sites are
the same, removing any data points that involve
% NaNs, reordering the sites if
necessary to ensure that X is a strictly
% increasing row vector and
reordering the data values correspondingly,
% and reshaping Y if necessary
to make sure that it is a matrix, with Y(:,j)
% the data value corresponding
to the data site X(j), and with SIZEY the
% actual dimensions of the
g