MATLAB POLYSPACE RELEASE NOTES User Manual Page 24

  • Download
  • Add to my manuals
  • Print
  • Page
    / 240
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 23
2 Matrices and Arra ys
Matrices a nd Magic Squares
In this section.. .
“About Matrices” on page 2-2
“Entering Matrices” on page 2-4
“sum, transpose, and diag” on page 2-5
“Subscripts” on page 2-7
“The Colon Operator” on page 2-8
“The magic Function” on page 2-9
About Matrices
In MATLAB, a matrix is a rectangular array of numbers. Special meaning
is sometimes attached to 1-by-1 matrices, which are scalars, and to m atrices
with only one row or column, which are vectors. M ATLAB has other ways of
storing both numeric and nonnumeric data, but in the beginning, it is u sually
best to think of everything as a matrix. The operations in M ATLAB are
designed to be as natural as possible. Where other programming languages
work with numbers one at a time, MATLAB allows you to work with entire
matrices quickly and easily. A good example matrix, used throughout this
book, appears in the Renaissance engraving Melencolia I by the German
artist and amateur mathematician Albrecht Dürer.
2-2
Page view 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 239 240

Comments to this Manuals

No comments