![]() ![]() We use MATLAB to compute the inverse Laplace transform. Taking into account that and, and by transforming the expression ( 3), we obtainīy applying the inverse Laplace transform to ( 4), we can obtain as function of. By applying the Laplace transform to ( 2), we obtain Let us apply the Laplace transform to equation ( 2). ![]() Let us assume that initial conditions are and. We perform the tests using the following differential equation The approach that is used for comparison is based on the Laplace transform. The two approaches should produce results that match. The idea is to compare this approach with another approach for computing the analytical solution. ![]() rn a1r (n-1) + a2r (n-2) Bottom line is, there isn't a good method to solve difference equations in Matlab now. Write y (n)rn, to get the auxiliary equation, solve for homogeneous part first. The result is shown in the figure below.įinally, let us verify that this approach produces accurate results. From this source, there are 2 methods: Apply Z transform, solve for X (z), then find inverse Z transform look up tables if needed. First, we choose the plotting interval, and then similarly to the MATLAB function plot(), we can use the function to plot the solution. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |