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.
Cite As
Giampiero Campa (2023). Scale (https://www.mathworks.com/matlabcentral/fileexchange/6353-scale), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Fractional difference method with scale dependent mesh, non-uniform mesh and uniform mesh
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |