Join array elements together via user function: joinfun(x,y0,f,...)

Join array elements by applying a function f between them.

You are now following this Submission

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 (2026). 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 .

Acknowledgements

Inspired: Matrix product: mprod(A,...)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Added Github link.