June 2019
Beginner
553 pages
17h 41m
English
We can also generate by matrices using built-in MATLAB functions. For example, the command
will generate a matrix whose entries are random numbers between 0 and 1. Other functions that can be used to generate matrices are eye, zeros, ones, magic, hilb, pascal, toeplitz, compan, and vander. To build triangular or diagonal matrices, we can use the MATLAB functions triu, tril, and diag.
The matrix building commands can be used to generate blocks of partitioned matrices. For example, the MATLAB command
will generate the matrix
Read now
Unlock full access