There are the following rules for creating a matrix in MATLAB:
A, matrix elements must be within "[]";
B, the equivalent elements of the matrix are separated by spaces (or ",");
C, between the rows of the matrix. (or enter);
D, the elements of the matrix can be numerical values, variables, expressions or functions;
E, the size of the matrix does not need to be defined in advance.