O'Reilly logo

MATLAB Matrix Algebra by César Pérez López

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

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

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required