how can I convert units to SI Units

조회 수: 4 (최근 30일)
Manav Divekar
Manav Divekar 2021년 10월 17일
답변: Can Atalay 2021년 10월 17일
Matlab Users,
I have data given in Accelerometer (0.001 g) Force-sensor (grams) Depth (0.01 mm), i need to convert this to its SI units like for force in Newton and for depth in Meters, from this given matrix.
Accelerometer (0.001 g) Force-sensor (grams) Depth (0.01 mm)
986 120 0
981 -60 0
984 -60 0
986 -70 0
993 -70 0
997 -70 0
1000 -70 0
1005 -70 0
1005 -70 0
1000 -70 0
994 -60 0
992 -60 0
991 -80 0

답변 (1개)

Can Atalay
Can Atalay 2021년 10월 17일
Say you have the values;
matrix_of_interest = [986 120 0; 981 -60 0; 984 -60 0]
You need to multiply grams with 1/1000 to get kg (SI) , mm with 1/1000 to get m (SI). You can't convert grams to force, they are different units. But, if gravitational acceleration is say 9.81 m/s^2, 1g would mean 9.81/1000 Newtons of force acting on that one gram mass. You probably already knew these. To get the converted matrix, you need to multiply the elements of your inital matrix with these conversion factors element-wise (see https://www.mathworks.com/help/matlab/ref/times.html)
format long
converted_values = matrix_of_interest.*[(1/1000)*(0.001) 9.81/1000 (1/1000)*(0.01)]

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by