No BSD License  

Highlights from
Data scaling

5.0

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

Data scaling

by Ani

 

11 Jul 2007 (Updated 12 Jul 2007)

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
11 Apr 2008 Anna B

Excellent!

26 Feb 2011 Ravi Kumar

thank you very much

16 Aug 2011 Mehdi Hassan

thanks

08 Oct 2011 hooman1988

thanks alot

08 Oct 2011 hooman1988

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

25 Apr 2012 Dustin Dorroh

fix usage documentation from scaleData to scaledata

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

Contact us at files@mathworks.com