亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? interp2.m

?? matlab建模工具箱及其應用 功能強大 收藏了很久了 和大家一起分享
?? M
?? 第 1 頁 / 共 2 頁
字號:
  t = 1 + (arg5-arg2(1))/(arg2(my)-arg2(1))*(nrows-1);
  
end

if any([nrows ncols]<[2 2]), error('Z must be at least 2-by-2.'); end
if ~isequal(size(s),size(t)),
  error('XI and YI must be the same size.');
end

% Check for out of range values of s and set to 1
sout = find((s<1)|(s>ncols));
if length(sout)>0, s(sout) = ones(size(sout)); end

% Check for out of range values of t and set to 1
tout = find((t<1)|(t>nrows));
if length(tout)>0, t(tout) = ones(size(tout)); end

% Matrix element indexing
ndx = floor(t)+floor(s-1)*nrows;

% Compute intepolation parameters, check for boundary value.
if isempty(s), d = s; else d = find(s==ncols); end
s(:) = (s - floor(s));
if length(d)>0, s(d) = s(d)+1; ndx(d) = ndx(d)-nrows; end

% Compute intepolation parameters, check for boundary value.
if isempty(t), d = t; else d = find(t==nrows); end
t(:) = (t - floor(t));
if length(d)>0, t(d) = t(d)+1; ndx(d) = ndx(d)-1; end
d = [];

% Now interpolate, reuse u and v to save memory.
if nargin==5,
  F =  ( arg3(ndx).*(1-t) + arg3(ndx+1).*t ).*(1-s) + ...
       ( arg3(ndx+nrows).*(1-t) + arg3(ndx+(nrows+1)).*t ).*s;
else
  F =  ( arg1(ndx).*(1-t) + arg1(ndx+1).*t ).*(1-s) + ...
       ( arg1(ndx+nrows).*(1-t) + arg1(ndx+(nrows+1)).*t ).*s;
end

% Now set out of range values to NaN.
if length(sout)>0, F(sout) = NaN; end
if length(tout)>0, F(tout) = NaN; end



%------------------------------------------------------
function F = cubic(arg1,arg2,arg3,arg4,arg5)
%CUBIC 2-D bicubic data interpolation.
%   CUBIC(...) is the same as LINEAR(....) except that it uses
%   bicubic interpolation.
%   
%   This function needs about 7-8 times SIZE(XI) memory to be available.
%
%   See also LINEAR.

%   Clay M. Thompson 4-26-91, revised 7-3-91, 3-22-93 by CMT.

%   Based on "Cubic Convolution Interpolation for Digital Image
%   Processing", Robert G. Keys, IEEE Trans. on Acoustics, Speech, and
%   Signal Processing, Vol. 29, No. 6, Dec. 1981, pp. 1153-1160.

if nargin==1, % cubic(z), Expand Z
  [nrows,ncols] = size(arg1);
  s = 1:.5:ncols; sizs = size(s);
  t = (1:.5:nrows)'; sizt = size(t);
  s = s(ones(sizt),:);
  t = t(:,ones(sizs));

elseif nargin==2, % cubic(z,n), Expand Z n times
  [nrows,ncols] = size(arg1);
  ntimes = floor(arg2);
  s = 1:1/(2^ntimes):ncols; sizs = size(s);
  t = (1:1/(2^ntimes):nrows)'; sizt = size(t);
  s = s(ones(sizt),:);
  t = t(:,ones(sizs));

elseif nargin==3, % cubic(z,s,t), No X or Y specified.
  [nrows,ncols] = size(arg1);
  s = arg2; t = arg3;

elseif nargin==4,
  error('Wrong number of input arguments.');

elseif nargin==5, % cubic(x,y,z,s,t), X and Y specified.
  [nrows,ncols] = size(arg3);
  mx = prod(size(arg1)); my = prod(size(arg2));
  if any([mx my] ~= [ncols nrows]) & ...
     ~isequal(size(arg1),size(arg2),size(arg3))
    error('The lengths of the X and Y vectors must match Z.');
  end
  if any([nrows ncols]<[3 3]), error('Z must be at least 3-by-3.'); end
  s = 1 + (arg4-arg1(1))/(arg1(mx)-arg1(1))*(ncols-1);
  t = 1 + (arg5-arg2(1))/(arg2(my)-arg2(1))*(nrows-1);
  
end

if any([nrows ncols]<[3 3]), error('Z must be at least 3-by-3.'); end
if ~isequal(size(s),size(t)), 
  error('XI and YI must be the same size.');
end

% Check for out of range values of s and set to 1
sout = find((s<1)|(s>ncols));
if length(sout)>0, s(sout) = ones(size(sout)); end

% Check for out of range values of t and set to 1
tout = find((t<1)|(t>nrows));
if length(tout)>0, t(tout) = ones(size(tout)); end

% Matrix element indexing
ndx = floor(t)+floor(s-1)*(nrows+2);

% Compute intepolation parameters, check for boundary value.
if isempty(s), d = s; else d = find(s==ncols); end
s(:) = (s - floor(s));
if length(d)>0, s(d) = s(d)+1; ndx(d) = ndx(d)-nrows-2; end

% Compute intepolation parameters, check for boundary value.
if isempty(t), d = t; else d = find(t==nrows); end
t(:) = (t - floor(t));
if length(d)>0, t(d) = t(d)+1; ndx(d) = ndx(d)-1; end
d = [];

if nargin==5,
  % Expand z so interpolation is valid at the boundaries.
  zz = zeros(size(arg3)+2);
  zz(1,2:ncols+1) = 3*arg3(1,:)-3*arg3(2,:)+arg3(3,:);
  zz(2:nrows+1,2:ncols+1) = arg3;
  zz(nrows+2,2:ncols+1) = 3*arg3(nrows,:)-3*arg3(nrows-1,:)+arg3(nrows-2,:);
  zz(:,1) = 3*zz(:,2)-3*zz(:,3)+zz(:,4);
  zz(:,ncols+2) = 3*zz(:,ncols+1)-3*zz(:,ncols)+zz(:,ncols-1);
  nrows = nrows+2; ncols = ncols+2;
else
  % Expand z so interpolation is valid at the boundaries.
  zz = zeros(size(arg1)+2);
  zz(1,2:ncols+1) = 3*arg1(1,:)-3*arg1(2,:)+arg1(3,:);
  zz(2:nrows+1,2:ncols+1) = arg1;
  zz(nrows+2,2:ncols+1) = 3*arg1(nrows,:)-3*arg1(nrows-1,:)+arg1(nrows-2,:);
  zz(:,1) = 3*zz(:,2)-3*zz(:,3)+zz(:,4);
  zz(:,ncols+2) = 3*zz(:,ncols+1)-3*zz(:,ncols)+zz(:,ncols-1);
  nrows = nrows+2; ncols = ncols+2;
end

% Now interpolate using computationally efficient algorithm.
t0 = ((2-t).*t-1).*t;
t1 = (3*t-5).*t.*t+2;
t2 = ((4-3*t).*t+1).*t;
t(:) = (t-1).*t.*t;
F     = ( zz(ndx).*t0 + zz(ndx+1).*t1 + zz(ndx+2).*t2 + zz(ndx+3).*t ) ...
        .* (((2-s).*s-1).*s);
ndx(:) = ndx + nrows;
F(:)  = F + ( zz(ndx).*t0 + zz(ndx+1).*t1 + zz(ndx+2).*t2 + zz(ndx+3).*t ) ...
        .* ((3*s-5).*s.*s+2);
ndx(:) = ndx + nrows;
F(:)  = F + ( zz(ndx).*t0 + zz(ndx+1).*t1 + zz(ndx+2).*t2 + zz(ndx+3).*t ) ...
        .* (((4-3*s).*s+1).*s);
ndx(:) = ndx + nrows;
F(:)  = F + ( zz(ndx).*t0 + zz(ndx+1).*t1 + zz(ndx+2).*t2 + zz(ndx+3).*t ) ...
       .* ((s-1).*s.*s);
F(:) = F/4;

% Now set out of range values to NaN.
if length(sout)>0, F(sout) = NaN; end
if length(tout)>0, F(tout) = NaN; end


%------------------------------------------------------
function F = nearest(arg1,arg2,arg3,arg4,arg5)
%NEAREST 2-D Nearest neighbor interpolation.
%   ZI = NEAREST(X,Y,Z,XI,YI) uses nearest neighbor interpolation to
%   find ZI, the values of the underlying 2-D function in Z at the points
%   in matrices XI and YI.  Matrices X and Y specify the points at which 
%   the data Z is given.  X and Y can also be vectors specifying the 
%   abscissae for the matrix Z as for MESHGRID. In both cases, X
%   and Y must be equally spaced and monotonic.
%
%   Values of NaN are returned in ZI for values of XI and YI that are 
%   outside of the range of X and Y.
%
%   If XI and YI are vectors, NEAREST returns vector ZI containing
%   the interpolated values at the corresponding points (XI,YI).
%
%   ZI = NEAREST(Z,XI,YI) assumes X = 1:N and Y = 1:M, where
%   [M,N] = SIZE(Z).
%
%   F = NEAREST(Z,NTIMES) returns the matrix Z expanded by interleaving
%   interpolates between every element.  NEAREST(Z) is the same as 
%   NEAREST(Z,1).
%
%   See also INTERP2, LINEAR, CUBIC.

%   Clay M. Thompson 4-26-91, revised 7-3-91 by CMT.

if nargin==1, % nearest(z), Expand Z
  [nrows,ncols] = size(arg1);
  u = ones(2*nrows-1,1)*(1:.5:ncols);
  v = (1:.5:nrows)'*ones(1,2*ncols-1);

elseif nargin==2, % nearest(z,n), Expand Z n times
  [nrows,ncols] = size(arg1);
  ntimes = floor(arg2);
  u = 1:1/(2^ntimes):ncols; sizu = size(u);
  v = (1:1/(2^ntimes):nrows)'; sizv = size(v);
  u = u(ones(sizv),:);
  v = v(:,ones(sizu));

elseif nargin==3, % nearest(z,u,v)
  [nrows,ncols] = size(arg1);
  u = arg2; v = arg3;

elseif nargin==4,
  error('Wrong number of input arguments.');

elseif nargin==5, % nearest(x,y,z,u,v), X and Y specified.
  [nrows,ncols] = size(arg3);
  mx = prod(size(arg1)); my = prod(size(arg2));
  if any([mx my] ~= [ncols nrows]) & (size(arg1)~=size(arg3) |   ...
    size(arg2)~=size(arg3)), 
    error('The lengths of the X and Y vectors must match Z.');
  end
  if all([nrows ncols]>[1 1]),
    u = 1 + (arg4-arg1(1))/(arg1(mx)-arg1(1))*(ncols-1);
    v = 1 + (arg5-arg2(1))/(arg2(my)-arg2(1))*(nrows-1);
  else
    u = 1 + (arg4-arg1(1));
    v = 1 + (arg5-arg2(1));
  end
end

if size(u)~=size(v), error('XI and YI must be the same size.'); end

% Check for out of range values of u and set to 1
uout = (u<.5)|(u>=ncols+.5);
nuout = sum(uout(:));
if any(uout(:)), u(uout) = ones(nuout,1); end

% Check for out of range values of v and set to 1
vout = (v<.5)|(v>=nrows+.5);
nvout = sum(vout(:));
if any(vout(:)), v(vout) = ones(nvout,1); end

% Interpolation parameters
s = (u - round(u));  t = (v - round(v));
u = round(u); v = round(v);

% Now interpolate
ndx = v+(u-1)*nrows;
if nargin==5,
  F = arg3(ndx);
else
  F = arg1(ndx);
end

% Now set out of range values to NaN.
if any(uout(:)), F(uout) = NaN; end
if any(vout(:)), F(vout) = NaN; end

%----------------------------------------------------------
function F = spline2(varargin)
%2-D spline interpolation

% Determine abscissa vectors 
varargin{1} = varargin{1}(1,:);
varargin{2} = varargin{2}(:,1).';

%
% Check for plaid data.
%
xi = varargin{4}; yi = varargin{5};
xxi = xi(1,:); yyi = yi(:,1);
if (size(xi,2)>1 & ~isequal(repmat(xxi,size(xi,1),1),xi)) | ...
   (size(yi,1)>1 & ~isequal(repmat(yyi,1,size(yi,2)),yi)),
  F = splncore(varargin(2:-1:1),varargin{3},varargin(5:-1:4));
else
  F = splncore(varargin(2:-1:1),varargin{3},{yyi(:).' xxi},'gridded');
end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美影片第一页| 精品久久久久久亚洲综合网| 91精品国产91热久久久做人人| 日韩精品一区二区在线观看| 亚洲欧美日韩国产中文在线| 精品一区二区久久| 在线观看视频一区| 国产日本欧洲亚洲| 免费在线观看成人| 欧美一卡2卡3卡4卡| 夜夜揉揉日日人人青青一国产精品| 久久国产尿小便嘘嘘尿| 色综合中文综合网| 综合在线观看色| 国产精品亚洲综合一区在线观看| 欧美视频一区二区| 亚洲视频免费观看| 成人性生交大片免费看在线播放 | 日韩av成人高清| 欧美性生活久久| 亚洲欧美色一区| 91在线一区二区三区| 久久99精品国产91久久来源| 亚洲777理论| 精品亚洲免费视频| 99久久综合国产精品| 欧美日韩www| 精品少妇一区二区三区在线播放| 欧美videos中文字幕| 中文字幕一区二区不卡| 亚洲成av人片在线观看无码| 国精产品一区一区三区mba桃花| 国产成人自拍高清视频在线免费播放 | 久久综合999| 亚洲色欲色欲www| 婷婷综合久久一区二区三区| 激情综合五月天| 一本到高清视频免费精品| 欧美伦理电影网| 国产欧美精品一区二区色综合 | 91蝌蚪porny| 欧美一级生活片| 亚洲色图一区二区| 国内精品在线播放| 欧美三级视频在线| 国产精品久久久久影院色老大| 午夜精品国产更新| 波波电影院一区二区三区| 日韩亚洲欧美中文三级| 成人欧美一区二区三区黑人麻豆 | 麻豆91在线播放| 99re成人精品视频| 久久久久久久久久久久久夜| 日韩制服丝袜av| 一本到三区不卡视频| 欧美精彩视频一区二区三区| 午夜电影一区二区| 一本大道久久a久久精品综合| 欧美精品一区二区三区蜜桃视频| 亚洲妇熟xx妇色黄| 91丨porny丨户外露出| 久久久久九九视频| 久久99精品国产.久久久久久| 日本道免费精品一区二区三区| 国产亚洲一区字幕| 国产在线看一区| 欧美成人免费网站| 麻豆精品视频在线| 91麻豆精品国产综合久久久久久| 一区二区三区精品在线| 99精品视频在线观看免费| 久久久久久久久免费| 国产美女精品一区二区三区| 日韩视频一区二区三区| 日本不卡123| 欧美一区二区日韩| 另类综合日韩欧美亚洲| 日韩三级.com| 国产在线一区二区| 久久青草国产手机看片福利盒子| 久久电影国产免费久久电影| 日韩视频免费观看高清完整版| 午夜精品成人在线| 欧美大片国产精品| 国内不卡的二区三区中文字幕| 久久综合九色欧美综合狠狠| 国产一区二区在线看| 欧美经典一区二区三区| av中文字幕在线不卡| 亚洲欧美成人一区二区三区| 色婷婷精品久久二区二区蜜臀av | 欧美丰满一区二区免费视频| 日本不卡免费在线视频| 欧美不卡在线视频| 成人综合在线网站| 最新国产の精品合集bt伙计| 日本韩国一区二区三区| 天天av天天翘天天综合网色鬼国产| 在线成人免费观看| 国产一区二区毛片| 欧美一区二区三区四区久久| 国内精品伊人久久久久av影院 | 亚洲国产精品欧美一二99| 久久久午夜精品| 日韩视频一区二区| 欧美一区二区三区四区视频| 欧美日韩一区二区三区高清| 91啪亚洲精品| caoporen国产精品视频| 国产成人精品一区二区三区四区| 久久精品国产在热久久| 日韩国产欧美视频| 日韩av不卡一区二区| 日韩高清在线一区| 五月天亚洲精品| 午夜影院久久久| 午夜精品福利一区二区蜜股av| 亚洲综合丁香婷婷六月香| 久久91精品国产91久久小草| 日韩精品免费专区| 日韩和的一区二区| 美女视频第一区二区三区免费观看网站| 亚洲一区二区三区免费视频| 亚洲第一二三四区| 日本中文字幕一区二区视频| 免费看日韩精品| 久久99久久精品欧美| 久久电影网电视剧免费观看| 激情丁香综合五月| 高清日韩电视剧大全免费| 成人激情动漫在线观看| 91网页版在线| 欧美日韩精品一区二区三区蜜桃| 欧美偷拍一区二区| 日韩欧美久久久| 久久久久久久免费视频了| 中文字幕中文字幕一区| 伊人色综合久久天天| 视频一区视频二区中文| 狠狠网亚洲精品| 国产精品乱人伦一区二区| 欧美日韩电影在线| 日本高清不卡视频| 色94色欧美sute亚洲线路一ni | 99re成人在线| 成人免费视频播放| 国产成人a级片| 国产精品亚洲第一区在线暖暖韩国 | 欧美影片第一页| 91福利资源站| 在线日韩av片| 欧美性受xxxx黑人xyx| 欧美主播一区二区三区美女| 91免费看片在线观看| 91丨九色porny丨蝌蚪| 99re热视频这里只精品| 色综合中文字幕国产 | 亚洲一区二区三区三| 亚洲综合视频网| 亚洲一区二区精品久久av| 亚洲午夜精品网| 午夜a成v人精品| 麻豆国产精品官网| 国产一区二区0| 成人一区二区视频| 91欧美一区二区| 欧美另类一区二区三区| 欧美一区二区三区在线电影| 欧美电视剧在线观看完整版| 精品av久久707| 国产精品久久久久一区| 夜夜精品视频一区二区| 爽好久久久欧美精品| 狠狠色综合播放一区二区| 国产成人午夜99999| 色综合一个色综合| 欧美剧情片在线观看| 精品粉嫩aⅴ一区二区三区四区| 国产亚洲人成网站| 亚洲激情图片qvod| 日本成人在线电影网| 国产精品综合二区| 色老综合老女人久久久| 91精品综合久久久久久| 国产日产精品1区| 亚洲第一在线综合网站| 国产在线精品不卡| 日本韩国欧美在线| 欧美一区二区三区啪啪| 欧美高清在线视频| 亚洲国产精品一区二区久久| 欧美美女一区二区在线观看| www.日韩精品| 亚洲精品大片www| heyzo一本久久综合| 国产日韩欧美精品电影三级在线| 精品夜夜嗨av一区二区三区| 欧美精品日韩一本| 青草国产精品久久久久久| 欧美日韩第一区日日骚|