Page 81 - MATLAB an introduction with applications
P. 81

66 ———  MATLAB: An Introduction with Applications



                                    1.5



                                     1



                                    0.5



                                     0
                                      0       0.5     1       1.5     2      2.5      3

                                                         Fig. E1.16 (f)
                   (g) % use of comet command
                       >> q=linspace(0,5*pi,200);
                       >> y=q*sin(q);
                       >> comet(q,y)
                                    15


                                    10


                                     5


                                     0


                                     –5


                                    –10


                                    –15
                                       0              5               10             15
                                                        Fig. E1.16 (g)

                   Example E1.17: Consider the two matrices
                                    3    2π              7  j  − 15  j
                               A =                and    B =    
                                   5j  10 +  2j          2π  18  


                   Using MATLAB, determine the following:
                       (a)  A + B
                       (b)  AB







                   F:\Final Book\Sanjay\IIIrd Printout\Dt. 10-03-09
   76   77   78   79   80   81   82   83   84   85   86