CAD/CAM技术及应用(6)

2021-01-20 15:11

CAD/CAM技术及应用

if xOffset && ~isreal(x)

error('MATLAB:interp1:ComplexX','X should be a real vector.')

end

if ~ppOutput && ~isreal(xi)

error('MATLAB:interp1:ComplexInterpPts', ...

'The interpolation points XI should be real.')

end

% Error check for NaN values in X and Y

% check for NaN's

if xOffset && (any(isnan(xCol)))

error('MATLAB:interp1:NaNinX','NaN is not an appropriate value for X.');

end

% NANS are allowed as a value for F(X), since a function may be undefined

% for a given value.

if any(isnan(yMat(:)))

warning('MATLAB:interp1:NaNinY', ...

['NaN found in Y, interpolation at undefined values \n\t',...

' will result in undefined values.']);

end

if (n < 2)

if ppOutput || ~isempty(xi)

error('MATLAB:interp1:NotEnoughPts', ...

'There should be at least two data points.')

else

yi = zeros(siz_yi,superiorfloat(x,y,xi));

varargout{1} = yi;

return

end

end

% Process METHOD in

% PP = INTERP1(X,Y,METHOD,'pp')

% YI = INTERP1(Y,XI,METHOD,...)

% YI = INTERP1(X,Y,XI,METHOD,...)

% including explicit specification of the default by an empty input.

if ppOutput

if isempty(varargin{3})


CAD/CAM技术及应用(6).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:流光放电等离子体氨法烟气脱硫脱硝技术概述

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: