alln and anyn: N-D "all" and "any" function
ALLN(A) is similar to all(A), but always returns a single value which determines if all matrix elements are nonzero. When A is a 2-D or higher-dimension matrix, it will return the same result as all(reshape(A, 1, [])).
ANYN(A) is similar to any(A), but always returns a single value which determines if any matrix elements are nonzero. When A is a 2-D or higher-dimension matrix, it will return the same result as any(reshape(A, 1, [])).
Both functions are useful when A can be either scalar, vector or matrix in your scripts.
Cita come
Whyjay Zheng (2024). alln and anyn: N-D "all" and "any" function (https://www.mathworks.com/matlabcentral/fileexchange/58689-alln-and-anyn-n-d-all-and-any-function), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Mathematics > Sparse Matrices >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | Updated description. |