apply
Versione 1.0.0.0 (1,68 KB) da
Stephen Lienhard
Apply a function looping over a dimension of a matrix
This function should help when it is difficult to generalize a function to operate on all dimensions.
Examples
--------
Take the eig of each page in the 3rd dimension
b = apply(@eig,rand(4,4,3),3,'uni',0)
Normalize each column
b = apply(@norm, rand(5,3), 2)
Normalize each row
b = apply(@norm, rand(5,3), 1)
Cita come
Stephen Lienhard (2025). apply (https://it.mathworks.com/matlabcentral/fileexchange/16467-apply), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2007b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Matrices and Arrays in Help Center e MATLAB Answers
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 | Added error checking. |
