You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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)
Cite As
Stephen Lienhard (2026). apply (https://in.mathworks.com/matlabcentral/fileexchange/16467-apply), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.68 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Added error checking. |
