Data scaling
Version 1.0.0.0 (429 Bytes) by
Ani
Program to scale the values of a matrix from a user specified minimum to a user specified maximum
6K Downloads
Updated
12 Jul 2007
No License
Program to scale the values of a matrix from a user specified minimum to a user specified maximum
Usage:
outputData = scaleData(inputData,minVal,maxVal);
Example:
a = [1 2 3 4 5];
a_out = scaledata(a,0,1);
Output obtained:
0 0.1111 0.2222 0.3333 0.4444
0.5556 0.6667 0.7778 0.8889 1.0000
Cite As
Ani (2024). Data scaling (https://www.mathworks.com/matlabcentral/fileexchange/15561-data-scaling), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Matrices and Arrays in Help Center and MATLAB Answers
Tags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |