【发布时间】:2018-02-02 08:31:35
【问题描述】:
我需要将力数组转换为位移数组。我编写了这段代码,但我得到的位移值有问题,因为它们比我预期的要高得多。
clc;
clear;
log = dlmread('testThumb.csv');
time = log(:,1);
force = log(:,2)./1000; #Converting from mN to N
time = time(2:2904);
force = force(2:2904);
force= detrend(force);
ace = force/0.0575; #I get the acceleration by dividing the force between the mass
speed = cumtrapz(time,ace); #Integration of the aceleration
position = cumtrapz(time,speed) * 1000; #Integration of the speed and
conversion of the speed from meters to millimeters
figure(1);
subplot(211);
plot(time,speed); #Speed in m/s, time in seconds
subplot(212);
plot(time,position); #Position in millimeters, time in seconds
样本之间的时间为 0.05,力是拇指通过某些动作产生的力,该值永远不会高于 20 牛顿。
这些是我得到的结果
谁能解释我得到的价值观?
【问题讨论】: