No BSD License  

5.0

5.0 | 7 ratings Rate this file 79 Downloads (last 30 days) File Size: 606 Bytes File ID: #15561

Data scaling

by

 

11 Jul 2007 (Updated )

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

| 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   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
01 Oct 2014 Nolan C  
07 Jul 2014 Umair  
22 Apr 2014 Praveen

it is not working if the matrix is 2x1

??? Undefined function or method 'scaledata' for input arguments of type
'double'.

19 Sep 2012 Steven

Thanks!

25 Apr 2012 Dustin Dorroh

fix usage documentation from scaleData to scaledata

08 Oct 2011 hooman1988

but dont resolve my problem and give me error in matlab 7.11.0.please help me

08 Oct 2011 hooman1988

thanks alot

16 Aug 2011 Mehdi Hassan

thanks

26 Feb 2011 Ravi Kumar

thank you very much

11 Apr 2008 Anna B

Excellent!

Contact us