We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
MatrixQ[expr]
gives True if expr is a list of lists or a two-dimensional SparseArray object that can represent a matrix, and gives False otherwise.
MatrixQ[expr,test]
gives True only if test yields True when applied to each of the matrix elements in expr.
DetailsTest of whether an object is a matrix:
Use tests to generalize and specialize:
Scope (2)Test if a matrix has positive (real) entries:
Test if a matrix has real numeric entries:
Faster test for real-valued numbers:
Applications (1)Define a function that only evaluates for explicit matrices:
This represents the Hermitian part of a matrix symbolically:
This gets the Hermitian part explicitly:
Properties & Relations (3) HistoryIntroduced in 1988 (1.0) | Updated in 2003 (5.0)
Wolfram Research (1988), MatrixQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixQ.html (updated 2003). TextWolfram Research (1988), MatrixQ, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixQ.html (updated 2003).
CMSWolfram Language. 1988. "MatrixQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/MatrixQ.html.
APAWolfram Language. (1988). MatrixQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MatrixQ.html
BibTeX@misc{reference.wolfram_2025_matrixq, author="Wolfram Research", title="{MatrixQ}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/MatrixQ.html}", note=[Accessed: 11-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_matrixq, organization={Wolfram Research}, title={MatrixQ}, year={2003}, url={https://reference.wolfram.com/language/ref/MatrixQ.html}, note=[Accessed: 11-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4