isdiag
Determines if the input is a diagonal matrix.
Syntax
R = isdiag(x)
Inputs
- x
- Type: any input
Outputs
- R
- A logical 1 when x is a diagonal matrix, and 0 otherwise.
Example
Simple isdiag example:
R = isdiag(eye(10))
R = 1
Discover new features and enhancements.
Discover Compose, including its language support and system requirements.
The Compose tutorials and associated example model files help introduce you to the basic functionality of the software.
Learn about the features and functionality available in Compose.
Reference guides are available for functions and commands supported by OML, Tcl, and Python.
OpenMatrix is a mathematical scripting language.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Returns a matrix with rows and columns of roughly equal magnitude.
Solve a system of linear equations with the biconjugate gradient stabilized method.
Cholesky decomposition.
Compute the condition number of a matrix.
Return the complex conjugate.
Convolution of two vectors.
Compute 2D convolution.
Vector cross product.
Matrix transpose.
Compute the matrix determinant.
Vector dot product.
Eigen decomposition.
Creates a fully populated matrix from sparse.
Solve a system of linear equations with the generalized minimum residual method.
Computes the Hankel matrix.
Compute the inverse matrix.
Determines if the input is a banded matrix.
Determines if the input is a diagonal matrix.
Hermitian matrix test.
Determines if an input is a matrix with sparse storage.
Determines if x is a square matrix.
Symmetric matrix test.
Determines if the input is a lower triangular matrix.
Determines if the input is a upper triangular matrix.
Kronecker matrix product.
Solve a linear system of equations.
LU decomposition.
Finds the number of non-zero values in a matrix.
Compute matrix and vector norms.
Solve a system of linear equations with the preconditioned conjugate gradient method.
Compute the matrix pseudo-inverse.
QR decomposition.
Compute the rank of matrix A.
Compute the 1-norm estimate of the reciprocal condition number.
Schur decomposition.
Sparse matrix creation.
Sparse identity matrix creation.
Set non-zero matrix elements to 1.
Singular value decomposition.
Computes the Toeplitz matrix.
Compute the trace of a matrix, the sum of the diagonal elements.
Matrix transpose.
Returns a lower triangular matrix.
Returns a upper triangular matrix.
Get help for the optional libraries that are available in the Extension Manager.
You've got questions? We've got answers!
Reference guides are available for functions and commands supported by OML, Tcl, and Python.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Determines if the input is a diagonal matrix.
Determines if the input is a diagonal matrix.
R = isdiag(x)
Simple isdiag example:
R = isdiag(eye(10))
R = 1
© 2022 Altair Engineering, Inc. All Rights Reserved.
Intellectual Property Rights Notice | Technical Support | Cookie Consent