CHAPTER 5

image

Vectors and Matrices

5.1 Vectors and Matrices

We have already seen how vectors and matrices are represented in MATLAB in the chapter dedicated to variables, however we shall recall the notation.

Consider the matrix

image

image

You can enter this in MATLAB in the following ways:

  • A=[a11,a12,...,a1n ; a21,a22,...,a2n ; ... ; am1,am2,...,amn]
  • A=[a11 a12 ... a1n ; a21 a22 ... a2n ; ... ; am1 am2 ... amn]
  • A=maple(‘array([[a11,..,a1n],[a21,..,a2n],..,[am1,..,amn]])’) ...

Get MATLAB Numerical Calculations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.