Scaling a variable in MATLAB when interfacing with Arduino

조회 수: 1 (최근 30일)
Darryl
Darryl 2014년 2월 27일
I am trying to rescale/remap a variable that is reading from an analog input from my Arduino. The values from the analog port are concatenated to a 1-by-1000 preallocated matrix and plotted in real-time using drawnow within a while loop.
At the moment the resolution from the Arduino is 0-1023, and I want it to be between 0-100, like in my original Arduino sketches. Obviously we use the map() function within the Arduino IDE, but what options have I got with the MATLAB environment?

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by