rescale(X)

Rescales values of X having each column values between [0, 1]
304 Downloads
Updated 23 Oct 2015

View License

Input arguments:
X : matrix of size [nsamples, ncols] containing values to rescale
Output arguments:
Y : result matrix

Example:
X = rand(100,4);
Y = rescale(X);
disp(min(Y));
disp(max(Y));

Cite As

Mario CASTRO GAMA (2024). rescale(X) (https://www.mathworks.com/matlabcentral/fileexchange/53652-rescale-x), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Images in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0