One of the input arguments must be a scalar, or Y and n must be vectors or matrices of the same size.
Now we use a dirac function, we take direc (n1, x1), it will expand the scalar into the vector using dirac function as the same size of n1 and compute the result and that result stored in d1 variable. Now we take order of derivative and it stored in n1, and the n1 is vectors so we take a value are 0, 1, 2, 4, and 5. Then we use a syms function, syms is a used to create symbolic variables and functions, we take syms x1. So the dirac (n1, x1) is used to take a nth derivative of delta function as x1. Let us see an example, in this example we take a nth derivative using a dirac function, dirac is a dirac delta function.