Be the first to rate this file! 10 downloads (last 30 days) File Size: 4.03 KB File ID: #6353

Scale

by Giampiero Campa

 

19 Nov 2004 (Updated 24 Nov 2004)

Code covered by the BSD License  

Linear scaling.

Download Now | 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
 

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