BSXFUN is very useful and fast.

In R2015b we can implement singleton expansion without BSXFUN, see the test suite for details. Have fun :-)

Input and Output:

yf = yourFcn(1) % Output a function handle supported singleton expansion.
yf = yourFcn(0) % Output a function handle unsupported singleton expansion.

Solution Stats

34 Solutions

7 Solvers

Last Solution submitted on Dec 16, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers7

Suggested Problems

More from this Author8

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!