bsxfun substitute

Substitute for bsxfun for older versions of MATLAB in which it is not built-in.

You are now following this Submission

This m-file and accompanying mex functions replicate the functionality of bsxfun for use in older versions of MATLAB prior to R2007a -- the first version that came with bsxfun built-in.

This code retains the important feature of not replicating any large arrays in order to perform its function.

Included is the source code for a series of mex functions that implement this functionality for several basic operators: plus, minus, times, etc. The function will work without these present albeit more slowly.

Cite As

Douglas Schwarz (2026). bsxfun substitute (https://au.mathworks.com/matlabcentral/fileexchange/23005-bsxfun-substitute), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Generalized Array Operations

Categories

Find more on Elementary Math in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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