Plot syms matlab1/28/2024 ![]() ![]() Then it displays the result in the form of infinity and –infinity. Then we substitute the value of x is 0, for the substitution we use a subs function, subs(d1, x1, 0) returns a copy of d1, replacing all occurrences of x1 with 0, and then evaluates d1. One of the input arguments is be scalar and the other one is a vector or a matrix, then dirac statement expands the scalar into a vector or matrix of the same size as per the other argument. 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. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |