[smallest, largest] = bounds(A)
[smallest, largest] = bounds(A, d)
[smallest, largest] = bounds(A, flag)
| Parameter | Description |
|---|---|
| A | input array. |
| d | dimension to operate along: positive integer scalar. |
| flag | optional argument forwarded to min and max. |
| Parameter | Description |
|---|---|
| smallest | Smallest values. |
| largest | Largest values. |
bounds returns the smallest and largest elements of A along the selected dimension.
A = [3 7 2; 9 1 5];
[s, l] = bounds(A)
| Version | Description |
|---|---|
| 2.0.0 | initial version |