__Answers:__

Suppose you want to define 3*3 matrix A then type,

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

or

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

Use space/comma to write a number in same row and use semicolon(;) to go to next row.

Suppose you want to define 3*3 matrix A then type,

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

or

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

Use space/comma to write a number in same row and use semicolon(;) to go to next row.

Login to add comment