Page 135 -
P. 135

In-Class Exercise
                             Pb. 4.41 Investigate how changes in the values of τ cavity  and τ decay  modify the
                             duration of the produced pulse. Plot the Q-switched pulse duration as func-
                             tion of each of these variables.








                             4.8  MATLAB Commands Review

                                diff        Takes the difference between consecutive elements in an
                                            array.
                                ode23 and Ordinary Differential Equations solvers.
                                 ode45
                                prod        Finds the product of all the elements belonging to an
                                            array.
                                quad and    Integrate a function between fixed limits.
                                 quad8
                                semilogy    Plot a graph with the abscissa in linear scale, while the
                                            ordinate is in a logarithmic scale.
                                sum         Sums all the elements of an array.
                                trapz       Finds the integral using the Trapezoid rule.






























                             © 2001 by CRC Press LLC
   130   131   132   133   134   135   136   137   138   139   140