Code covered by the BSD License  

Highlights from
LISQ - A toolbox for the lifting scheme on 2D quincunx grids

image thumbnail
from LISQ - A toolbox for the lifting scheme on 2D quincunx grids by Paul De Zeeuw
A toolbox for the lifting scheme on 2D quincunx grids and for the computation of moment invariants

m10(F)
function val = m10(F)
%------------------------------------------------------------------------------
%
% Integrates interpolated gridfunction F times x,
% interpolation is assumed piecewise constant.
% The result corresponds to a first order moment.
%
% See also: m00, m01, mupq
%
% Design and implementation by:
% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl>  http://homepages.cwi.nl/~pauldz/
% Last Revision: November 27, 2000.
%  2000 Stichting CWI, Amsterdam
%------------------------------------------------------------------------------
[hx, hy] = gridfdims(F);
val=sum(sum( xcpowp(F, 1, 0.0).*F ))*(hx*hy);
%------------------------------------------------------------------------------

Contact us at files@mathworks.com