Compute the product of the corner elements of an array (vector or matrix).
If any corner element is NaN, return NaN.
If any corner element is Inf, return Inf.
If both NaN and Inf appear among the corners, return -1.
If the input is empty, return 0.
Some built-in functions are forbidden.

Solution Stats

11 Solutions

7 Solvers

Last Solution submitted on Jul 06, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers7

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

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

Start Hunting!