# 2x2 matrix multiplied by a 2x1 column vector gives erratic results

47 views (last 30 days)

Show older comments

##### 3 Comments

Moe_2015
on 6 Jun 2016

Edited: Moe_2015
on 6 Jun 2016

### Answers (1)

Moe_2015
on 6 Jun 2016

Edited: Moe_2015
on 6 Jun 2016

That is not how matrix multiplication works at all. For a matrix and a vector:

A= [1 2 v= [1

3 4] -1]

A*v= [1*1+2*(-1)

3*1+4*(-1)]

MATLAB does not fail. It does it correctly.

Please review matrix multiplication:

##### 4 Comments

Stephen23
on 7 Jun 2016

### See Also

### Categories

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!