Updated Thu, 06 Oct 2016 06:43:47 +0000
This function bounds an array of any dimension (N-D) between minimum and maximum values without using for loops.
In optimization for example, bounding arrays can be common bottlenecks so a fast approach (no for loops) is advantageous.
It achieves the same result as http://au.mathworks.com/matlabcentral/fileexchange/43251-bound-values-of-an-array but without for loops and error checking which makes it faster.
JMP Phillips (2023). BoundNDArray(array,lb,ub) (https://www.mathworks.com/matlabcentral/fileexchange/59517-boundndarray-array-lb-ub), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Bound Values of an array
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.