-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.m
57 lines (45 loc) · 909 Bytes
/
index.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%Sets some constants
degree = 4;
steps = 100000;
%Dataset to analyze
filename = 'rawData/kevinArmrest.xlsx';
[rawData, headers] = xlsread(filename);
totalTime = 7.2;
%Test Subject
height = 1.79; %m
mass = 134 / 2.20462; %kg
%Imports degree data and solves for thetas
processDegreeData()
%Processes the discretized degree data (DDD)
curveDegreeData()
%Uses DDD to get (X,Y) data of segments
processSegmentData()
%get MomentOfInertia for shank & thigh
calculateMOI()
%calculate knee torque
%calculateKneeTorque()
%Plotting functions
%plotDegreeData()
%plotCurvedDegreeData()
%plotBodyAnimation()
%plot() formatting
%formatDegreePlot()
%{
READ.ME document
Data needs to correspond to Segments:
- Foot
- Shank
- Thigh
- Trunk
- Upper Arm
- Forearm
- Hand
- Hand (inverted)
- Forearm (inverted)
- Upper Arm (inverted)
- Neck & Head
Pure sit: 0.8s -> 3.2s
- total 2.4s
Armrest: 0 -> 7.2s
- total 7.2s
%}