all
all of the elements of a matrix satisfy some condition.
📝Syntaxe
R = all(M)
R = all(M, dim)
R = all(M, 'all')
📥Arguments d'entrée
Paramètre Description
M a matrix.
dim a integer value: dimension along it works.
'all' tests over all elements of M.
📤Arguments de sortie
Paramètre Description
R a logical matrix.
📄Description

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

💡Exemples
all([33, 22; 11, 0])
all([33, 22; 11, 0], 2)
🔗Voir aussi
any
🕔Historique des versions
Version Description
1.0.0 version initiale
Modifier cette page sur GitHub