Matrix Laboratory or Matlab is designed to work mainly with arrays and matrices. All the Matlab variables, irrespective of their data type, are multidirectional arrays and all matrices are ...
%Define the 3x3 matrix A with all 1's in the first row, all 2's in the second row, and all 3's in the 3rd row. A = [1 1 1; 2 2 2; 3 3 3] %Use the size() function to compute the # of rows and columns ...