2.5K Downloads
Updated 20 May 2023

simulink-range-scaling-block

Simulink block to easily scale an input to a given range

View Scale on File Exchange

Open in MATLAB Online

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 often and widely (sensors, actuators, DAC, ACD ...). This block allows to perform the transformation just entering the desired range, so you don't have to calculate anything.

Cite As

Giampiero Campa (2024). Scale (https://github.com/giampy1969/simulink-range-scaling-block/releases/tag/v1.1), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R11.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1

See release notes for this release on GitHub: https://github.com/giampy1969/simulink-range-scaling-block/releases/tag/v1.1

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.