data scaling from sensor
3 ビュー (過去 30 日間)
古いコメントを表示
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/170509/image.png)
0 件のコメント
回答 (1 件)
Madhu Govindarajan
2017 年 12 月 1 日
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!