Apply element-wise operation to two arrays with implicit expansion enabled
It is recommended that you replace most uses of bsxfun
with direct calls to the functions and operators that support implicit
expansion. Compared to using bsxfun
, implicit expansion
offers faster speed of execution, better memory usage, and improved readability
of code. For more information, see Compatible Array Sizes for Basic Operations.