Page 39 - A Guide to MATLAB for Beginners and Experienced Users
P. 39

20        Chapter 2: MATLAB Basics


                                                      exp(-x) and sin(x)


                          1




                         0.5





                          0




                        -0.5





                         -1

                           0     1      2     3      4     5     6      7     8      9     10
                                                           x
                         Figure 2-3


                       function data class. This is the type of input fzero expects as its first
                       argument.

                      In current versions of MATLAB, fzero also accepts a string expression with
                       independent variable x, so that we could have run the command above
                       without using inline, but this feature is no longer documented in the help
                       text for fzero and may be removed in future versions.



           Vectors and Matrices


                     MATLAB was written originally to allow mathematicians, scientists, and
                     engineers to handle the mechanics of linear algebra — that is, vectors and
                     matrices — as effortlessly as possible. In this section we introduce these
                     concepts.
   34   35   36   37   38   39   40   41   42   43   44