You are on page 1of 1

3/10/17 4:29 PM MATLAB Command Window 1 of 1

>> M=[10 20; 5 8]

M =

10 20
5 8

>> N=[-1 1; 1 -1]

N =

-1 1
1 -1

>> M+N

ans =

9 21
6 7

>> M-N

ans =

11 19
4 9

>> N+9

ans =

8 10
10 8

>> M*N

ans =

10 -10
3 -3

>> N*M

ans =

-5 -12
5 12

>>

You might also like