Join array elements together via user function: joinfun(x,y0,f,...)
Version 1.0.0.0 (2.12 KB) by
Dark Dragon
Join array elements by applying a function f between them.
Behaves like: f( f( f(y0,x(1)), x(2) ), x(3) ) ... x(end)
It also supports multidimensional arrays by specifying dimension to work on.
Github: https://github.com/darkdragon-001/matlab_helpers
Cite As
Dark Dragon (2024). Join array elements together via user function: joinfun(x,y0,f,...) (https://www.mathworks.com/matlabcentral/fileexchange/58912-join-array-elements-together-via-user-function-joinfun-x-y0-f), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Language Fundamentals > Operators and Elementary Operations > Logical (Boolean) Operations >
Find more on Logical (Boolean) Operations in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Matrix product: mprod(A,...)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Added Github link. |