all
all of the elements of a matrix satisfy some condition.
📝Syntax
R = all(M)
R = all(M, dim)
R = all(M, 'all')
📥Input Arguments
Parameter Description
M a matrix.
dim a integer value: dimension along it works.
'all' tests over all elements of M.
📤Output Arguments
Parameter Description
R a logical matrix.
📄Description

all returns true if all of the elements of a matrix satisfy some condition.

💡Examples
all([33, 22; 11, 0])
all([33, 22; 11, 0], 2)
🔗See Also
any
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub