Hello,
I need help converting values of an Accelerometer sensor. It has 12gb so the values are from 0 to 4096.
I need to convert a given "value" to g.
Having +-2g range I need to set 4096 to 2g and 0 to -2g to then plot the values.
Can you please help?
Thank you.

답변 (1개)

Voss
Voss 2021년 9월 22일
편집: Voss 2021년 9월 22일

0 개 추천

g_val = double(val)/4096*4*g-2*g;
plot(g_val);

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 9월 22일

편집:

2021년 9월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by