Beginners-1

Page 39

20

Chapter 2: MATLAB Basics exp(-x) and sin(x)

1

0.5

0

-0.5

-1

0

1

2

3

4

5 x

6

7

8

9

10

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.


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.