Professional Documents
Culture Documents
MATRIX
1. Create a matrix A
CODE:
A= [1 1 1;2 2 2;3 3 3]
OUTPUT:
3. Create various sub-matrix for the given 3X3 matrix: (Hint: A(1:2,2:3 ) Explanation: displays
the elements starting from 1st row 2nd element to 2nd row 3rd element
CODE:
A[1:2,2:3]
OUTPUT: