all
all of the elements of a matrix satisfy some condition.
📝 Syntaxe
R = all(M)
R = all(M, dim)
R = all(M, 'all')
📥 Argument d'entrée
M - a matrix.
dim - a integer value: dimension along it works.
'all' - tests over all elements of M.
📤 Argument de sortie
R - a logical matrix.
📄 Description
all returns true if all of the elements of a matrix satisfy some condition.
💡 Exemple
all([33, 22; 11, 0])
all([33, 22; 11, 0], 2)🔗 Voir aussi
any.
🕔 Historique
Version
📄 Description
1.0.0
version initiale
Last updated
Was this helpful?