5.0

5.0 | 1 rating Rate this file 19 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

Contact us at files@mathworks.com