-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfunc.m
139 lines (137 loc) · 3.33 KB
/
cfunc.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
function c = cfunc(in1,in2,in3,T)
%CFUNC
% C = CFUNC(IN1,IN2,IN3,T)
% This function was generated by the Symbolic Math Toolbox version 9.3.
% 27-Apr-2023 11:34:08
Q1_1 = in1(1);
Q1_2 = in1(6);
Q1_3 = in1(11);
Q1_4 = in1(16);
Q1_5 = in1(21);
Q2_1 = in1(2);
Q2_2 = in1(7);
Q2_3 = in1(12);
Q2_4 = in1(17);
Q2_5 = in1(22);
Q3_1 = in1(3);
Q3_2 = in1(8);
Q3_3 = in1(13);
Q3_4 = in1(18);
Q3_5 = in1(23);
Q4_1 = in1(4);
Q4_2 = in1(9);
Q4_3 = in1(14);
Q4_4 = in1(19);
Q4_5 = in1(24);
Q5_1 = in1(5);
Q5_2 = in1(10);
Q5_3 = in1(15);
Q5_4 = in1(20);
Q5_5 = in1(25);
qdes1 = in3(1,:);
qdes2 = in3(2,:);
qdes3 = in3(3,:);
qdes4 = in3(4,:);
qdes5 = in3(5,:);
t2 = Q1_1.*qdes1;
t3 = Q1_2.*qdes1;
t4 = Q1_2.*qdes2;
t5 = Q1_3.*qdes1;
t6 = Q1_4.*qdes1;
t7 = Q1_3.*qdes3;
t8 = Q1_5.*qdes1;
t9 = Q1_4.*qdes4;
t10 = Q1_5.*qdes5;
t11 = Q2_1.*qdes1;
t12 = Q2_1.*qdes2;
t13 = Q2_2.*qdes2;
t14 = Q2_3.*qdes2;
t15 = Q2_3.*qdes3;
t16 = Q2_4.*qdes2;
t17 = Q2_5.*qdes2;
t18 = Q2_4.*qdes4;
t19 = Q2_5.*qdes5;
t20 = Q3_1.*qdes1;
t21 = Q3_1.*qdes3;
t22 = Q3_2.*qdes2;
t23 = Q3_2.*qdes3;
t24 = Q3_3.*qdes3;
t25 = Q3_4.*qdes3;
t26 = Q3_4.*qdes4;
t27 = Q3_5.*qdes3;
t28 = Q3_5.*qdes5;
t29 = Q4_1.*qdes1;
t30 = Q4_2.*qdes2;
t31 = Q4_1.*qdes4;
t32 = Q4_2.*qdes4;
t33 = Q4_3.*qdes3;
t34 = Q4_3.*qdes4;
t35 = Q4_4.*qdes4;
t36 = Q4_5.*qdes4;
t37 = Q4_5.*qdes5;
t38 = Q5_1.*qdes1;
t39 = Q5_2.*qdes2;
t40 = Q5_1.*qdes5;
t41 = Q5_3.*qdes3;
t42 = Q5_2.*qdes5;
t43 = Q5_3.*qdes5;
t44 = Q5_4.*qdes4;
t45 = Q5_4.*qdes5;
t46 = Q5_5.*qdes5;
t47 = t2.*2.0;
t48 = t13.*2.0;
t49 = t24.*2.0;
t50 = t35.*2.0;
t51 = t46.*2.0;
t52 = t2+t4+t7+t9+t10;
t53 = t11+t13+t15+t18+t19;
t54 = t2+t12+t21+t31+t40;
t55 = t3+t13+t23+t32+t42;
t56 = t5+t14+t24+t34+t43;
t57 = t20+t22+t24+t26+t28;
t58 = t6+t16+t25+t35+t45;
t59 = t8+t17+t27+t36+t46;
t60 = t29+t30+t33+t35+t37;
t61 = t38+t39+t41+t44+t46;
t62 = T.*t52.*(1.9e+1./2.0e+1);
t63 = T.*t53.*(1.9e+1./2.0e+1);
t64 = T.*t54.*(1.9e+1./2.0e+1);
t65 = T.*t55.*(1.9e+1./2.0e+1);
t66 = T.*t56.*(1.9e+1./2.0e+1);
t67 = T.*t57.*(1.9e+1./2.0e+1);
t68 = T.*t58.*(1.9e+1./2.0e+1);
t69 = T.*t59.*(1.9e+1./2.0e+1);
t70 = T.*t60.*(1.9e+1./2.0e+1);
t71 = T.*t61.*(1.9e+1./2.0e+1);
t82 = t4+t7+t9+t10+t12+t21+t31+t40+t47;
t83 = t3+t11+t15+t18+t19+t23+t32+t42+t48;
t84 = t5+t14+t20+t22+t26+t28+t34+t43+t49;
t85 = t6+t16+t25+t29+t30+t33+t37+t45+t50;
t86 = t8+t17+t27+t36+t38+t39+t41+t44+t51;
t72 = -t62;
t73 = -t63;
t74 = -t64;
t75 = -t65;
t76 = -t66;
t77 = -t67;
t78 = -t68;
t79 = -t69;
t80 = -t70;
t81 = -t71;
t87 = (T.*t82)./2.0e+1;
t88 = (T.*t83)./2.0e+1;
t89 = (T.*t84)./2.0e+1;
t90 = (T.*t85)./2.0e+1;
t91 = (T.*t86)./2.0e+1;
t92 = -t87;
t93 = -t88;
t94 = -t89;
t95 = -t90;
t96 = -t91;
t97 = t72+t74+t92;
t98 = t73+t75+t93;
t99 = t76+t77+t94;
t100 = t78+t80+t95;
t101 = t79+t81+t96;
c = [0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;0.0;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;t97;t98;t99;t100;t101;0.0;0.0;0.0;0.0;0.0];
end