bounds
Smallest and largest array elements.
📝Syntax
[smallest, largest] = bounds(A)
[smallest, largest] = bounds(A, d)
[smallest, largest] = bounds(A, flag)
📥Input Arguments
Parameter Description
A input array.
d dimension to operate along: positive integer scalar.
flag optional argument forwarded to min and max.
📤Output Arguments
Parameter Description
smallest Smallest values.
largest Largest values.
📄Description

bounds returns the smallest and largest elements of A along the selected dimension.

💡Examples
A = [3 7 2; 9 1 5];
[s, l] = bounds(A)
🔗See Also
minmax
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub