MATLAB: Matrix Laboratory
Matrix generation method:
- Direct input matrix elements
- Known matrix matrix assembly, a steering matrix, a shift matrix
- Read data files
- Special function directly using the matrix generated
Function name Explanation zeros Full matrix 0 ones Full matrix 1 rand Uniformly distributed random matrix randn Normally distributed random distribution magic Cube Matrix diag diagonal matrix affectionate Upper triangular matrix Trill Lower triangular matrix eye Matrix company Adjoint matrix hilb Hilbert matrix invhilb Hilbert inverse matrix vander vander matrix pascal Pascal matrix hadamard Hadamard matrix hankel() Hankel matrix
2.2.1 matrix generation
Generating a random matrix:
RAND = A ( . 5 ) generates a random% a 5 × 5 matrix A (:, . 1 )% A in the first column of A (:, . 3 : . 5 ) A three to five% of A ( . 1 ,% A :) of the first row a ( . 1 : . 3 ,% a :) to three lines of a