del2
- :
L =del2(U)¶ - :
L =del2(U, h)¶ - :
L =del2(U, hx, hy, …)¶ Discrete Laplacian of the array U.
The result is
1/(2*N)times the sum of the second differences of U along each of its N dimensions (at least two). The spacing is 1 by default. A scalar spacing is used along every dimension; a vector gives the coordinates of the samples along one dimension. When several spacings are given the first belongs to the columns (dimension 2), the second to the rows (dimension 1), and the following ones to dimensions 3, 4, ….Interior second differences use the three neighbouring samples; the values at the ends of a dimension are obtained by linear extrapolation from the two nearest interior values. A dimension with fewer than three samples contributes nothing.