Array Creation:- We can make an array in single row with 5 elements and elements can be separated by either space or comma. Example 1:- xyz=[1 2 3 4 5 ]
xyz=[1,2,3,4,5] Example 2:- Matrix having multiple rows and columns >> x=[1,2,3,4,5;6,7,8,9,10;11,12,13,14,15] x = 1…