You are on page 1of 15

X =

1 -1 1 0.428572 0.428573 -1
1 1 -1 0.428572 0.428573 -1
1 -1 -1 0.428572 0.428573 1
1 0 0 -0.57143 -0.57143 0
1 0 0 -0.57143 -0.57143 0
1 0 0 -0.57143 -0.57143 0
1 1 1 0.428572 0.428573 1
1 1.414214 0 1.428573 -0.57143 0
1 -1.41421 0 1.428562 -0.57143 0
-
1 0 1.41421 -0.57143 1.428563 0
1 0 0 -0.57143 -0.57143 0
1 0 1.41421 -0.57143 1.428563 0
1 0 0 -0.57143 -0.57143 0
1 0 0 -0.57143 -0.57143 0

y1 =

13.9972
16.5203
12.3015
18.5000
18.5000
18.5000
10.6260
9.4959
8.8966
19.0107
18.5000
16.0418
18.5000
18.5000
y2 =

88.1780
98.4350
154.2050
140.0000
140.0000
140.0000
64.8670
46.5240
102.4430
163.5710
140.0000
93.1470
140.0000
140.0000

y3 =

2.6413
4.8662
6.9236
6.5300
6.5300
6.5300
1.6039
2.4671
4.6554
7.1237
6.5300
1.7888
6.5300
6.5300
y4 =

9.0844
11.5981
13.1813
15.3600
15.3600
15.3600
3.7512
7.5084
12.3991
13.0766
15.3600
4.6309
15.3600
15.3600

x'

ans =

Columns 1 through 12

1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
1.0000

-1.0000 1.0000 -1.0000 0 0 0 1.0000 1.4121 -1.4142 0 0 0

1.0000 -1.0000 -1.0000 0 0 0 1.0000 0 0 -1.4142 0 1.4142

1.0000 1.0000 1.0000 0 0 0 1.0000 2.0000 2.0000 0 0 0

1.0000 1.0000 1.0000 0 0 0 1.0000 0 0 2.0000 0 2.0000

-1.0000 -1.0000 1.0000 0 0 0 1.0000 0 0 0 0 0

Columns 13 through 14

1.0000 1.0000

0 0
0 0

0 0

0 0

0 0

inv(x'*x)

ans =

0.1667 0.0000 -0.0000 -0.0833 -0.0833 0

0.0000 0.1251 -0.0000 0.0000 -0.0000 0

-0.0000 -0.0000 0.1250 0.0000 0.0000 0

-0.0833 0.0000 0.0000 0.1354 0.0104 0

-0.0833 -0.0000 0.0000 0.0104 0.1354 0

0 0 0 0 0 0.2500

x'*y1

ans =

217.8900

1.6755

-8.3972

90.2299

123.5496

-7.5900
d=inv(x'*x)

d=

0.1667 0.0000 -0.0000 -0.0833 -0.0833 0

0.0000 0.1251 -0.0000 0.0000 -0.0000 0

-0.0000 -0.0000 0.1250 0.0000 0.0000 0

-0.0833 0.0000 0.0000 0.1354 0.0104 0

-0.0833 -0.0000 0.0000 0.0104 0.1354 0

0 0 0 0 0 0.2500

b1=d*x'*y1

b1 =

18.5000

0.2120

-1.0497

-4.6518

-0.4869
-1.8975

>> b2=d*x'*y2

b2 =

140.0000

-19.7775

-24.8987

-32.7660

-5.8179

8.1148

>> b3=d*x'*y3

b3 =

6.5300

-0.7740

-1.8862

-1.4847

-1.0368

0.2550
>> b4=d*x'*y4

b4 =

15.3600

-1.7297

-2.9860

-2.7038

-3.2529

-0.9375

>> ezsurfc('18.5+(0.2199*x1)-(1.0496*x2)-(4.6519*x1^2)-(0.4869*x2^2)-(1.8975*x1*x2)')

>> ezsurfc('140-(19.77*x1)-(24.899*x2)-(32.758*x1^2)-(5.821*x2^2)+(8.115*x1*x2)')

>> ezsurfc('5.0893-(0.7737*x1)-(1.8862*x2)-(1.4844*x1^2)-(1.0369*x2^2)+(0.2550*x1*x2)')

>> ezsurfc('11.9564-(1.7291*x1)-(2.9860*x2)-(2.7031*x1^2)-(3.2531*x2^2)-(0.9375*x1*x2)')

K=

-4.6519 -0.9487

-0.9487 -0.4869

>> k1=[0.2119;-1.0496]

k1 =

0.2119

-1.0496
>> K2=[-32.758 4.0575;4.0575 -5.821]

K2 =

-32.7580 4.0575

4.0575 -5.8210

>> k2=[-19.77;-24.899]

k2 =

-19.7700

-24.8990

>> K3=[-1.4844 0.1275;0.1275 -1.0369]

K3 =

-1.4844 0.1275

0.1275 -1.0369

>> k3=[-0.7737;-1.8862]

k3 =

-0.7737
-1.8862

>> K4=[-2.7031 -0.46875;-0.46875 -3.2531]

K4 =

-2.7031 -0.4688

-0.4688 -3.2531

>> k4=[-1.7291;-2.986]

k4 =

-1.7291

-2.9860

Persamaan 1

>> X0=0.5*inv(K)*k1

X0 =

-0.4026

1.8623

>> Y0=18.5+(0.5*X0'*k1)

Y0 =

17.4800
Persamaan 2

F=

-1 0

>> X=[-1 0]

X=

-1 0

>> U=[7.09 24]

U=

7.0900 24.0000

>> Y1=interp1(F,U,-0.4026,'*linear')

Y1 =

17.1920

>> X02=0.5*inv(K2)*k2

X02 =
0.6202

2.5710

>> Y02=140+(0.5*X02'*k2)

Y02 =

101.8610

>> F2=[0 1]

F2 =

0 1

>> U2=[24 40.97]

U2 =

24.0000 40.9700

>> Y2=interp1(F2,U2,0.6202,'*linear')

Y2 =

34.5248

>> F2=[1 1.41214]


F2 =

1.0000 1.4121

>> Y2=interp1(F2,U2,0.6202,'*linear')

Y2 =

NaN

>> U2=[40.97 48]

U2 =

40.9700 48.0000

>> Y2=interp1(F2,U2,0.6202,'*linear')

Y2 =

NaN

>> R[-1.4844,0.1275;0.1275,-1.0369]

R[-1.4844,0.1275;0.1275,-1.0369]

>> R=[-1.4844,0.1275;0.1275,-1.0369]

R=
-1.4844 0.1275

0.1275 -1.0369

Persamaan 3

>> X03=[0.5*inv(K3)*k3

X03 =

0.3423

0.9516

>> Y03=5.0893+(0.5*X03'*k3)

Y03 =

4.0594

>> F3=[0 1]

F3 =

0 1

>> U3=[24 40.97]

U3 =
24.0000 40.9700

>> Y3=interp1(F3,U3,0.3423,'*linear')

Y3 =

29.8088

>> Y3=interp1(F3,U3,0.9516,'*linear')

Y3 =

40.1487

Persamaan 4

>> X04=0.5*(inv(K4))*k4

X04 =

0.2464

0.4234

>> Y04=11.9564+(0.5*X04'*k4)

Y04 =

11.1112
>> F4=[0 1]

F4 =

0 1

>> U4=[24 40.97]

U4 =

24.0000 40.9700

>> Y4=interp1(F4,U4,0.2464,'*linear')

Y4 =

28.1814

>> Y4=interp1(F4,U4,0.4234,'*linear')

Y4 =

31.1851

>>