Matrix Algebra

2.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 here the notation.

Consider the matrix


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]])’)
  • A=maple(‘matrix(m,n,[a11,..,a1n,a21,..,a2n,..,am1,..,amn])’)
  • A=maple(‘matrix([[a11,..,a1n],[a21,..,a2n],..,[am1,..,amn]])’) ...

Get MATLAB Matrix Algebra now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.