Skip to content

Commit 138e28a

Browse files
committed
Example 9 added
1 parent 2a0de11 commit 138e28a

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

Commit.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
git add .
2-
git commit -m "Example 8 added"
2+
git commit -m "Example 9 added"
33
git push
44

55
pause

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -533,20 +533,17 @@ Triple Pendulum #1 Position and Anlges:
533533
The simulation results are based on the following Values:
534534

535535
``` MATLAB
536-
% List of Parameter Values
537-
Plist1 = [M1 m11 m12 m13 l11 l12 l13];
538-
Pval1 = [4, 2, 1,1, 1, 1,1];
539-
Plist2 = [M2 m21 m22 m23 l21 l22 l23];
540-
Pval2 = [8, 2, 1,1, 1, 1,1];
541536
542-
Plist3 = [g l0 ls1 ls2 k1 k2];
543-
Pval3 = [9.8, 1, 1,1, 100,50];
537+
% List of Parameter Values
538+
m0 = 1;
539+
l0 = 2;
540+
g0 = 9.81;
544541
545542
% Initial Conditions
546-
x01 = [0,pi/6,2*pi/6,4*pi/5];
547-
Dx01 = zeros(1,4);
548-
x02 = [0.5,pi/4,2*pi/4,5*pi/8];
549-
Dx02 = zeros(1,4);
543+
th0 = 50;
544+
phi0 = 0;
545+
Dth0 = 0;
546+
Dphi0 = 75;
550547
551548
552549
```

0 commit comments

Comments
 (0)