data scaling from sensor

Hi guys,I have the data from arduino that give me reading of 266 to 400, i want to convert this data into 0 to 180.Im kind of stuck at the block parameter because I don't know how to set the representable maximum and minimum?

回答(1 个)

Madhu Govindarajan
Madhu Govindarajan 2017-12-1

0 个投票

What you need is the 1-D lookup table https://www.mathworks.com/help/simulink/slref/1dlookuptable.html
or just the linear interpolation equation slope and intercept values.

类别

在 帮助中心 和 File Exchange 中查找有关 Run on Target Hardware 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by