dirac
Dirac delta function
Description
Examples
Input Arguments
More About
Tips
For complex values
x
with nonzero imaginary parts,dirac
returnsNaN
.dirac
returns floating-point results for numeric arguments that are not symbolic objects.dirac
acts element-wise on nonscalar inputs.The input arguments
x
andn
must be vectors or matrices of the same size, or else one of them must be a scalar. If one input argument is a scalar and the other one is a vector or a matrix, thendirac
expands the scalar into a vector or matrix of the same size as the other argument with all elements equal to that scalar.
Version History
Introduced before R2006a