You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Computes functions of arrays where the singleton dimensions of each have been expanded to be the size of the other, without actually copying any data.
For example,
x = rand(4,3,1,2);
y = rand(4,1,5,2);
z = genop(@times,x,y);
size(z) will be [4 3 5 2].
Cite As
Douglas Schwarz (2026). Generalized Array Operations (https://nl.mathworks.com/matlabcentral/fileexchange/10333-generalized-array-operations), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: bsxfun substitute
General Information
- Version 1.0.0.0 (2.63 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Modified so it works with a function returning logical. |
