5.0

5.0 | 1 rating Rate this file 37 downloads (last 30 days) File Size: 606 Bytes File ID: #15561

Data scaling

by Ani

 

11 Jul 2007 (Updated 12 Jul 2007)

No BSD License  

Program to scale the values of a matrix from a user specified minimum to a user specified maximum

Download Now | Watch this File

File Information
Description

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

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
11 Apr 2008 Anna B

Excellent!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
linear algebra Ani 22 Oct 2008 09:19:07
scale Ani 22 Oct 2008 09:19:07
scaling data Ani 22 Oct 2008 09:19:07
data scaling Ani 22 Oct 2008 09:19:07
matrix Ani 22 Oct 2008 09:19:07
values Ani 22 Oct 2008 09:19:07
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com