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!