MATLAB_Higher_Order_ODE Description and Help

Description:

MATLAB_Higher_Order_ODE is a graphical user interface (GUI) that plots solutions to

{
    any (n)(t) + an -1y (n- 1)(t) + ⋅⋅⋅ + a1y (1)(t) + a0y (t) = 0,t > 0
     (i)
    y  (0) = ci,i = 0,1,⋅⋅⋅,n - 1

on t > N where an≠0 and ci are the initial conditions at t = 0. The superscripts on y denote the number of derivatives take with the convention that y(0)(t) = y(t). This GUI has the ability to check an analytical answer by comparing the plot of the IVP solution given by MATLAB to a potential answer derived by the user. The interface also computes the matrix A such that the higher order linear homogeneous ODE is equivalent to

{
 u ′(t)  =  Au (t),t > 0

 u (0)  =  u0

See the textbook for complete details. In order to see the matrix, in the command window type: A. Furthermore, the GUI can be used simply as a plotting utility. In other words, inputting an IVP is not necessary.

To use the GUI, you must input a value for T. To see the graph of the function y(t), use MATLAB notation to input the function’s definition in the box name ‘f(t)’. Leaving the box as ‘f(t)’ or empty will be interpreted by the GUI as not wanting to see the graph of y(t).


PIC

Figure 1: MATLAB_Higher_Order_ODE GUI


Next, click on the Input IVP and Plot y(t) button. Pop-up boxes will appear guiding you through the input process.


PIC

Figure 2: Pop-up boxes for parameters


Once all the inputs have been made graphs will be shown on the axis in the GUI or in an external window.


PIC

Figure 3: Checking solution to y′′(t) + y(t) = 0,y(0) = 0,y′(0) = 1