QRULE2D compute abscissas and weight factors for Gaussian quadratures CALL: [bpx,bpy,wfxy]=qrule2d(nx,ny) bpx, bpy = base points (abscissas) wfxy = weight factors nx,ny = number of base points (abscissas) in each direction. See also gaussq2d
compute abscissas and weight factors for Gaussian quadratures | |
X and Y arrays for 3-D plots. |
Numerically evaluates a 2D integral using Gauss quadrature. |
01 function [bpx,bpy,wfxy] = qrule2d (nx,ny) 02 %QRULE2D compute abscissas and weight factors for Gaussian quadratures 03 % 04 % CALL: [bpx,bpy,wfxy]=qrule2d(nx,ny) 05 % 06 % bpx, bpy = base points (abscissas) 07 % wfxy = weight factors 08 % nx,ny = number of base points (abscissas) in each direction. 09 % 10 % See also gaussq2d 11 12 13 [bpxv,wfxv]=qrule(nx); 14 [bpyv,wfyv]=qrule(ny); 15 [bpx,bpy]=meshgrid(bpxv,bpyv); 16 [wfx,wfy]=meshgrid(wfxv,wfyv); 17 wfxy=wfx.*wfy; 18
Comments or corrections to the WAFO group