📄 stencilxgridfrvc.m
字号:
function F = stencilxgridfRVC(G, Stencil, center)%------------------------------------------------------------------------------% Multiplies gridfunction G with Stencil.% Excess area is filled by Vertex-Centered (VC) Reflection across boundaries.%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl> http://homepages.cwi.nl/~pauldz/% Last Revision: June 26, 2000.% Copyright 1999-2002 Stichting CWI, Amsterdam.%------------------------------------------------------------------------------o=[0 0];if ~all(size(o) == size(center)) error(' stencilxgridfRVC - unexpected dimensions of center ')endF=zeros(size(G));[n, m] = size(Stencil);for i=1:n for j=1:m sij = Stencil(i,j); if sij ~= 0 F = F + rayxgridfRVC(G, ([i j] - center), sij); end endend %------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -