
diag - Create diagonal matrix or get diagonals from symbolic …
This MATLAB function returns a square diagonal matrix with vector v as the main diagonal.
diag - Create diagonal matrix or get diagonal elements of matrix
This MATLAB function returns a square diagonal matrix with the elements of vector v on the main diagonal.
Constructing Sparse Matrices - MATLAB & Simulink - MathWorks
The matrix representation of the second difference operator is a good example of a sparse matrix. It is a tridiagonal matrix with -2s on the diagonal and 1s on the super- and subdiagonal. There …
eig - Eigenvalues and eigenvectors - MATLAB - MathWorks
[V,D] = eig(A) returns diagonal matrix D of eigenvalues and matrix V whose columns are the corresponding right eigenvectors, so that A*V = V*D.
spdiags - Extract nonzero diagonals and create sparse band and …
This MATLAB function extracts the nonzero diagonals from m-by-n matrix A and returns them as the columns in min(m,n)-by-p matrix Bout, where p is the number of nonzero diagonals.
triu - Upper triangular part of matrix - MATLAB - MathWorks
The upper triangular portion of a matrix includes the main diagonal and all elements above it. The shaded elements in this graphic depict the upper triangular portion of a 6-by-6 matrix.
blkdiag - Block diagonal matrix - MATLAB - MathWorks
This MATLAB function returns the block diagonal matrix created by aligning the input matrices A1,...,AN along the diagonal of B.
kron - Kronecker tensor product - MATLAB - MathWorks
Block Diagonal Matrix Create a block diagonal matrix. Create a 4-by-4 identity matrix and a 2-by-2 matrix that you want to be repeated along the diagonal.
svd - Singular value decomposition - MATLAB - MathWorks
The economy-size decomposition removes extra rows or columns of zeros from the diagonal matrix of singular values, S, along with the columns in either U or V that multiply those zeros in …
isdiag - Determine if matrix is diagonal - MATLAB - MathWorks
Diagonal Matrix A matrix is diagonal if all elements above and below the main diagonal are zero. Any number of the elements on the main diagonal can also be zero. For example, this 4-by-4 …