Code covered by the BSD License  

Highlights from
Scale

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 4.03 KB File ID: #6353
image thumbnail

Scale

by Giampiero Campa

 

19 Nov 2004 (Updated 24 Nov 2004)

Linear scaling.

| Watch this File

File Information
Description

This block linearly scales an input vector ranging from xmin to xmax to an output vector ranging from ymin to ymax.

The four parameters xmin, xmax, ymin, ymax can be themselves vectors (or matrices), so each element can be scaled independently from the others.

The function performed is just a simple affine transformation, but it is used so often and so widely (sensors, actuators, DAC, ACD ...), that i think it should have a place under the standard Math Operations library in Simulink.

Required Products Simulink
MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
simulink Giampiero Campa 22 Oct 2008 07:36:10
linear Giampiero Campa 22 Oct 2008 07:36:10
affine Giampiero Campa 22 Oct 2008 07:36:10
transformation Giampiero Campa 22 Oct 2008 07:36:10
scaling Giampiero Campa 22 Oct 2008 07:36:10
sensors Giampiero Campa 22 Oct 2008 07:36:10
actuators Giampiero Campa 22 Oct 2008 07:36:10
range Giampiero Campa 22 Oct 2008 07:36:10
da Giampiero Campa 22 Oct 2008 07:36:10

Contact us at files@mathworks.com