Y = rescale(X)
Y = rescale(X, a, b)
Y = rescale(..., 'InputMin', lo, 'InputMax', hi)
| Parameter | Description |
|---|---|
| X | a numeric array. |
| a, b | the bounds of the output interval (default 0 and 1). |
| lo, hi | optional input limits mapped to a and b. |
| Parameter | Description |
|---|---|
| Y | the rescaled array, same size as X. |
Y = rescale(X) scales the entries of X to the interval [0, 1].
Y = rescale(X, a, b) scales the entries to the interval [a, b].
Y = rescale([1 2 3 4 5])
Z = rescale([1 2 3 4 5], 0, 10)
| Version | Description |
|---|---|
| 2.0.0 | initial version |