Matrix in MATLAB

A=[1 2 3;4 5 6;7 8 9]

A =

1 2 3
4 5 6
7 8 9

B=[2 3 4;5 6 7;8 9 10]

B =

2 3 4
5 6 7
8 9 10

A+B

ans =

3 5 7
9 11 13
15 17 19

F=A-B

F =

-1 -1 -1
-1 -1 -1
-1 -1 -1

A’

ans =

1 4 7
2 5 8
3 6 9

size(A)

ans =

3  3

 

It may help
https://www.youtube.com/watch?v=CnuFGYBvnmU

Spread the love