Table Of Contents

dlaplacian

Version:
    Last Modified: March 15, 2017

    Computes the discrete version of the Laplacian. The algorithm in this function works by extrapolating boundary conditions.

    Syntax

    c = dlaplacian(a)
    c = dlaplacian(a, d)
    c = dlaplacian(a, dx, dy)
    c = dlaplacian(a, dx, dy, ...)
    Legacy name: del2

    Inputs

    a

    Values of the function for which you want to compute the Laplacian. a is a matrix or an array of any dimension.

    d

    Spacing between points along the x- and y-axes or between values of the first and second dimensions in a 2D array. If a is an array of higher dimensions, d is the spacing between the values of all dimensions. d is an array of real, double-precision, floating-point numbers.

    Default: 1 or dx = dy = 1

    dx

    Spacing between points along the x-axis or between values of the second dimension in a n-dimensional array. dx is an array of real, double-precision, floating-point numbers.

    Default: 1

    dy

    Spacing between points along the y-axis or between values of the first dimension in a n-dimensional array. dy is an array of real, double-precision, floating-point numbers.

    Default: 1

    ...

    Further dimensions.

    Outputs

    c

    Array of the same size as a that represents the Laplacian.

    Specifying the Spacing between the Points of the dlaplacian Function

    You can specify the spacing between the points of the dlaplacian function in two ways. If dx or dy contains only one element, the spacing between two consecutive points on the corresponding axis is constant. If dx or dy contains more than one element, the values of the elements specify the coordinates of the points on the corresponding axis. The length of dx or dy must therefore conform to the corresponding dimension of a.

    A = peakfcn2d(30);
    C = dlaplacian(A);

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics