LAMPIRAN A LISTING PROGRAM

  

LAMPIRAN A

LISTING PROGRAM

  p = [ 1 1 1 1 1 1 1; 1 1 1 1 1 1 0; 1 1 0 1 1 1 1; 1 0 1 1 1 1 1; 1 1 1 0 1 1 1; 1 1 1 0 1 1 0; 1 1 0 1 1 0 1; 1 1 0 0 1 1 1; 1 1 1 0 0 0 0; 1 1 0 1 0 1 1; 1 0 1 1 0 1 1; 1 1 1 1 0 1 0; 1 0 1 0 1 1 1; 1 0 0 1 1 1 1; 1 1 1 1 1 0 0; 1 0 1 1 1 0 1; 1 1 1 0 0 1 1; 1 0 1 1 1 1 0; 1 1 1 0 1 0 0; 1 1 0 0 1 0 1; 1 0 1 1 0 0 1; 1 1 0 0 0 1 1; 1 0 1 0 1 0 1; 1 0 0 0 1 1 1; 1 0 0 1 1 0 1; 1 1 0 1 1 0 0; 1 1 1 1 0 0 0; 1 1 0 0 1 1 0; 1 0 1 1 1 0 0; 1 0 1 0 0 1 1; 1 0 0 1 0 1 1; 1 0 0 1 1 1 0; 1 1 1 0 0 1 0; 1 0 1 1 0 1 0; 1 1 0 0 0 0 1; 1 0 1 0 0 0 1; 1 0 0 0 0 1 1; 1 1 0 0 0 1 0; 1 0 1 0 1 0 0; 1 1 0 1 0 0 0; 1 1 0 0 1 0 0; 1 0 0 0 1 0 1; 1 0 0 1 0 1 0; 1 0 0 0 1 1 0; 1 0 1 0 0 1 0; 1 0 0 0 0 0 1; 1 0 1 0 0 0 0; 1 0 0 0 0 1 0; 1 0 0 1 0 0 0; 1 0 0 0 0 0 0; 0 0 0 0 0 0 0; 0 0 0 0 1 0 0; 0 0 0 1 0 0 0; 0 0 1 0 0 0 0; 0 0 0 1 0 1 0; 0 1 0 0 0 0 0; 0 0 1 1 0 0 0; 0 1 1 0 0 0 0; 0 0 0 1 1 0 0; 0 0 0 0 1 1 0; 0 1 0 1 0 0 0; 0 0 1 0 1 0 0; 0 1 0 0 0 0 1; 0 1 0 0 1 0 0; 0 0 0 0 1 0 1; 0 0 0 0 0 1 0; 0 0 1 0 0 0 1; 0 0 1 0 0 1 0; 0 1 0 0 0 1 0; 0 1 1 1 1 1 0; 0 1 1 1 1 0 1; 0 1 1 1 0 1 1; 0 1 1 0 1 1 1; 0 0 1 1 1 1 1; 0 1 1 1 1 0 0; 0 0 1 1 1 0 1; 0 1 0 1 1 1 1; 0 1 1 0 1 1 0; 0 1 1 0 0 1 1; 0 1 0 1 1 1 0; 0 1 1 1 0 0 1; 0 1 1 0 1 0 1; 0 1 0 0 1 1 1; 0 1 0 1 0 1 1; 0 0 1 0 1 1 1; 0 0 1 1 0 1 1; 0 1 1 1 0 0 0; 0 1 1 0 0 0 1; 0 1 1 0 0 1 0; 0 1 0 1 0 0 1; 0 1 0 0 1 0 1; 0 0 1 1 0 0 1; 0 0 1 0 0 1 1; 0 0 0 1 1 1 0; 0 1 1 0 1 0 0; 0 1 0 0 1 1 0; 0 1 0 0 0 1 1; 0 0 1 1 0 1 0; 0 0 1 0 1 0 1; 0 0 1 0 1 1 0; 0 1 0 1 0 1 0; 0 0 0 0 1 1 1; 0 1 0 1 1 0 0 ]; t = [ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

  • 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 ]; p = p'
net=newff(minmax(p),[104 5 1], { 'tansig''tansig''purelin' }, 'traingd' ); net.trainParam.show = 500; net.trainParam.lr = 0.01; net.trainParam.epochs = 500000; net.trainParam.goal = 1e-5; net = train(net,p,t); y = sim(net,p); bobotinput = net.IW{1,1}; biasinput = net.b{1,1}; bobotlapisan1 = net.LW{2,1}; biaslapisan1 = net.b{2,1}; bobotlapisan2 = net.LW{3,1}; biaslapisan2 = net.b{3,1};

  n = [ 1 1 1 1 0 1 1; 1 1 1 1 0 0 1; 1 1 1 0 1 0 1; 1 1 0 1 0 0 1; 1 0 1 1 0 0 0; 1 0 0 0 1 0 0; 1 0 1 0 1 1 0; 1 1 1 0 0 0 1; 1 1 0 1 0 1 0; 1 0 0 1 0 0 1; 1 1 0 0 0 0 0; 1 1 0 1 1 1 0; 1 0 0 1 1 0 0; 1 1 1 1 1 0 1; 0 0 0 1 0 0 1; 0 0 0 0 0 1 1; 0 0 0 0 0 0 1; 0 1 1 1 1 1 1; 0 1 1 1 0 1 0; 0 0 0 1 1 1 1; 0 0 0 1 0 1 1; 0 0 1 1 1 0 0; 0 1 0 1 1 0 1; 0 0 1 1 1 1 0; 0 0 0 1 1 0 1 ]; n = n'; baru = newff(minmax(n),[104,5,1], { 'tansig''tansig''purelin' },

  'traingd' );

  baru.IW{1,1} = [ 1.8360 2.5665 -1.4949 -2.3878 0.6016

  • 2.6789 -2.0332 1.4159 3.3321 -0.4983 -1.5353 2.3723 2.5375
  • 1.6079 1.1765 -0.4878 2.9799 -0.1668 2.1139 2.9270 2.4414
  • 3.3509 3.3834 1.4193 -0.8450 0.5848 1.8930 0.4797
  • 2.2695 -0.3365 -2.9913 -2.9827 0.8685 -0.7559 2.2390
  • 1.5759 1.3642 3.5716 -2.6685 -1.4120 1.8086 0.1877
  • 2.0342 -2.2064 -2.4252 0.8717 -2.2925 2.2857 1.8820
  • 0.8132 1.3311 3.3470 0.6039 -3.4779 -0.0308
  • 1.8632 3.1327 -1.4763 -0.5783 -2.1731 0.9197 -2.1771
  • 2.6307
  • 2.6343 -2.5748 3.4138 -1.4671 -0.1780 -0.2580 1.4208
  • 2.3749 1.7386 3.6599 -0.1358 0.1125 0.3800 3.2569
  • 1.6313
  • 2.3255 1.9078 -2.6913 2.2609 -1.0122 0.0896
  • 2.6328 2.3239 1.4054 -0.0741 -2.6648 -3.2125 -1.6527
  • 1.4150 1.6945 3.0484 0.8116 2.9229 0.9096 -0.6220 2.5864 2.4579 1.5106 0.8541 -2.6993 0.3835 3.6436 0.1100 3.4626 -2.5464 0.6573 2.0092 -0.7496 1.3589
  • 2.0533 2.6684 0.0903 1.2128 3.4281 2.1133 1.8772
  • 1.1047
  • 3.7102 -0.2505 -0.8341 -0.2701 -2.5982 -2.9547
  • 0.0917 0.4660 -0.2553 -3.8503 -0.2989 2.1232 -1.9678 2.4477 1.9300 3.0893 -2.8439 0.7921 -0.0711 2.1462
  • 1.6981
  • 2.6941 0.5969 3.1357 2.9224 -0.5236 1.6437 0.7540
  • 1.8717 -2.4605 -1.7240 -1.5771 1.2944 -0.5625 3.5592
  • 0.2036 2.4215 -2.2916 2.2345 2.5461 0.9627
  • 2.4364
  • 0.3112 0.8948 2.0421 -2.1002 4.1594 1.6357
  • 0.3637 2.5851 1.8333 -0.9603 1.8754 3.2979 -2.0830 0.1495
  • 1.6808 0.6281 1.9314 -1.4122 0.1531 -3.5876 2.7674
  • 2.4829 1.2709 1.8750 -1.5054 1.0723 -3.0990
  • 2.2970
  • 1.5344 1.9311 -2.7674 -2.0574 1.7959 -2.3284
  • 1.8171
  • 1.4609 -1.7407 1.8086 2.8546 -1.6327 2.0146 2.4885
  • 2.4537 -1.4638 2.4162 -2.5541 0.9942 -2.3040 1.6544 1.3782 0.7440 3.6558 1.9827 0.1545 -1.4530
  • 2.7548 0.1743 -2.2350 2.9463 -1.3200 -1.7413 1.5412 2.9472 1.4917 1.3034 3.1230 1.5004 -0.4936 -1.0736
  • 3.4975
  • 0.1196 2.7161 3.9163 1.7028 1.4456 0.1092
  • 1.3721
  • 1.5119 -2.4755 2.8666 -2.6452 1.1324 -1.6691 1.3331 0.2388 -0.8334 0.7056 -0.6860 1.6061 0.7968
  • 4.9605 2.6290 -1.7727 2.3350 -1.3266 2.5802 -0.1908 2.3850 1.8357 -1.5365 -2.0573 -2.6470 0.7784 1.6770 3.0364
  • 0.0388 1.4706 2.2501 0.3454 -3.5013 -3.1184
  • 0.4598
  • 1.9342 3.5152 -1.1860 1.1405 -3.6219 -0.2221 -0.6637 0.9456
  • 0.2880 0.6653 3.1293 -2.6166 -1.3473 1.8843 2.6726
  • 1.5905 -3.0126 -3.2683 -0.8395 -2.0987 -0.6494 1.2538
  • 1.3246 -1.9969 -1.0530 1.8542 0.6605 2.4802
  • 3.5534
  • 1.4203 -2.6260 -2.8419 2.0237 0.2121 -0.0975 2.8969
  • 2.8882 -3.6089 0.1595 -0.9952 -1.5338 0.3921
  • 2.2117
  • 1.1347 2.3278 0.9309 1.5837 0.3806 -3.8850
  • 2.0638
  • 1.5853 -3.2131 -2.5780 -0.4991 -2.9708 0.7535
  • 0.8402 2.9623 -2.3731 -2.3079 -1.6593 -1.2614 -1.5830
  • 1.3973
  • 0.0737 -0.5986 4.0607 1.9486 -0.0904 1.6749
  • 2.4536 1.5381 -3.8849 3.2053 -0.6911 0.4668 0.1485
  • 1.0343
  • 2.2421 -2.1438 1.9661 2.7216 -0.5163 -1.9863
  • 2.1135
  • 0.4159 3.3572 -2.8550 0.9834 0.0643 2.3369 1.8596
  • 2.5282 0.3180 -3.5208 -0.8761 -0.7769 -2.9982 0.6158
  • 0.7599 3.1597 2.5075 -1.0606 -2.6223 -1.6768
  • 1.3563 0.5942 2.9103 -2.1613 -2.0418 2.3720 -0.3270 2.4867 2.3439 -2.5845 2.9047 0.5167 -0.9936 0.5060 2.7180 2.4868 -2.9979 2.6358 1.1578 0.4998 -2.3842
  • 0.3988
  • 2.0723 -2.8513 -2.2898 0.6419 0.5372 -2.2757
  • 2.5148 0.3547 2.7821 2.2454 2.6185 0.7628 -2.8930 0.8898
  • 1.2785 -1.5810 -1.0466 2.8459 1.1433 -0.8527 3.7333
  • 1.5014 -0.4364 -2.7834 -2.2446 1.5912 -1.5336 3.0798 2.5752 -0.7017 3.0492 1.1641 2.2353 -2.3170 1.2214 3.5733 -2.1968 -2.7473 1.5279 -0.6228 1.1641
  • 0.5667
  • 1.0472 -0.2057 -0.0834 2.5858 -2.2734 1.9368
  • 3.5729 0.0443 1.2386 1.6898 -0.0435 -3.0365 2.6248 3.0273 2.4286 -0.4602 3.7468 2.9701 -0.7783 -0.1824 0.2390 1.3467 -0.5830 3.1858 1.3151 2.6396 2.6913
  • 1.1450
  • 1.6795 -1.8612 -1.2415 -2.6036 2.5660 -2.8295 0.6120

  2.3905

  • 1.5518 3.1923 0.9299 -3.5790 0.3158 1.7543
  • 0.3356
  • 3.2339 -1.5912 1.2478 -2.9359 1.6394 -0.9799 1.6597 1.8994 3.4563 0.8578 0.9844 1.3109 1.1818 3.0398 0.7856 2.1647 -2.5481 -1.6505 1.7459 -2.7010
  • 2.1835 0.1379 2.7830 1.5350 1.5815 -3.2225 0.8580
  • 2.4098 1.6650 1.1996 3.9196 0.4031 -2.7902 -1.4346
  • 0.1104
  • 0.3827 2.2029 2.7804 1.8724 1.3951 -2.6043 1.9853
  • 2.7208 -3.7937 -0.6954 -1.9080 -1.2486 1.3901
  • 0.4972 3.7566 0.7628 -1.4275 -2.0115 1.0835 0.3943
  • 2.6750
  • 2.4074 2.4502 -1.9100 2.1879 1.6574 -1.6473 1.9231 0.5440 -1.8086 1.8420 -2.5948 -1.7844 -0.7700
  • 3.4713 3.3118 -2.6109 -1.2187 -1.8143 2.4490 -0.0174
  • 0.9347
  • 2.1299 -1.6113 -2.9744 0.4367 2.8166 -0.3901 2.2962 0.0747 -2.2083 2.8804 2.1239 -0.5396 1.7173 2.9489
  • 0.9507 0.6042 1.9228 -2.2625 -1.8342 -3.6613 1.6439 3.2629 -1.4976 0.1103 0.2040 -2.5264 3.1949
  • 0.0128
  • 0.0551 1.4547 2.1427 -1.9507 2.1609 2.5723
  • 2.7909 1.7162 -0.6029 3.3361 0.5708 2.5757 -1.9954
  • 2.0386
  • 1.1354 2.8381 4.0351 -1.1231 1.5364 0.0644
  • 0.2940
  • 1.9702 -3.2975 -1.2537 -0.1270 -3.6263 -0.1243 0.1643 3.0388 2.2236 -1.7969 -0.3829 -1.1424 -3.1795 0.6902 1.4842 2.1235 -2.3691 2.8494 -2.9383 -0.6183
  • 0.1790 2.5236 -1.8462 -0.4928 3.4197 -2.5333 -0.9174
  • 0.6481
  • 0.1333 1.9461 2.8457 2.9153 -0.9170 -2.8218 0.0803 0.4689 1.1399 1.2983 -2.7349 2.7268 2.4239
  • 2.3409 1.9793 2.4692 -1.7071 2.8021 1.4102 1.3306
  • 2.2536 1.7216 2.6279 -1.3211 -2.1944 -1.7713 0.2056
  • 3.1508
  • 1.7424 3.4539 -2.2449 0.1859 2.2628 1.5429 1.3910
  • 1.4882 2.0209 -1.0363 -2.9447 -1.9157 -3.1109 0.3598

  • 2.5611 3.3055 -1.1023 -0.8441 -1.4341 -1.4971 -3.3816
  • 1.0958 1.1739 2.4717 -2.4535 0.9183 0.9901 -2.1915 3.0726 1.3604 3.5506 -0.3902 -1.0542 2.3226 0.0089
  • 2.9038 ]; baru.b{1} = [ -0.8723
  • 5.4756
  • 8.1100 0.7733 5.6402 1.8554 4.3271 2.8177

  0.1386 3.4009 5.8698

  • 5.7494 4.3674 0.6729
  • 7.7097
  • 4.9877
  • 2.9793
  • 6.9665 6.9950
  • 1.0289
  • 3.3335
  • 1.3326 3.1617 0.0336
  • 1.5174
  • 4.6881 1.9674 3.8644 4.5759
  • 1.1468 2.9914
  • 2.9710
  • 2.1773
  • 2.1363
  • 3.2458 2.3922 0.7097
  • 4.0540
  • 1.1447 2.1904
  • 2.4593
  • 0.3633
  • 1.4762 5.5785 1.8630 1.2793 5.5674 1.1397

  5.5864 3.9829

  • 2.2075

  2.1238

  • 2.7832 4.7246 0.8290
  • 1.6607
  • 2.4341
  • 0.1510 4.9823
  • 2.9803
  • 2.1174 1.3046
  • 2.9729 0.6125 0.6612
  • 1.9318
  • 3.1691
  • 3.8485 2.5459
  • 5.7154
  • 1.3870 0.9874
  • 5.2008 3.3406 0.5771
  • 0.2043
  • 5.1194 3.3057 1.7019
  • 2.7046 5.5909 2.1016
  • 0.9248
  • 1.7217 0.5001 0.5150
  • 3.6321 0.0411
  • 4.9997 3.0980 2.4252 1.9940 2.5220
  • 4.3194 0.8817
  • 0.7099 4.3487
  • 4.8917 1.5770
  • 4.1730 5.5949 0.6299 1.2957 ]; baru.LW{2,1} = [ 0.1474 0.1029 0.0506 0.1747 0.1039
  • 0.1873 0.1683 0.1991 0.1560 -0.0496 0.1165 0.1555
  • 0.1026 -0.1574 0.1153 0.0856 -0.1051 -0.1738 -0.2104 0.0913 0.0542 -0.1200 -0.1487 -0.1034 0.0798 -0.1426 0.0891 -0.1188 -0.1377 0.0608 -0.0785 0.0771 0.1401 0.2120 0.2037 -0.2064 0.1433 -0.0874 -0.1982 -0.0387

  0.0751 0.0519 0.2265 -0.2004 0.2026 0.1666 -0.1906 0.1908 0.0274 -0.2023 0.0848 0.0476 0.1118 0.1872

  • 0.0745 0.0620 0.1422 -0.1003 0.2212 0.1632 0.2439
  • 0.2083 0.1725 -0.0939 0.1826 0.0118 -0.0350 -0.1189 0.0135 0.1953 0.1479 0.1970 0.1504 -0.2033 0.1800
  • 0.1409 -0.0397 -0.2001 -0.0733 0.1124 0.1950 -0.1132
  • 0.1231 -0.1700 0.0506 -0.1041 0.2042 0.2474 0.0786 0.0461 -0.1594 0.2232 0.1119 0.0796 -0.0127 -0.2296
  • 0.1646 0.1473 0.1523 -0.0971 0.0501 -0.1999 0.0351
  • 0.0169 -0.0884 -0.1478 0.1066 -0.2128 0.0339 -0.0097
  • 0.1862 0.1587 0.1390 0.3281 0.0756 -0.0226 -0.0297 0.1362 -0.1082 0.1718 0.1365 -0.0910 0.1275 0.0800
  • 0.0087 -0.0319 -0.1381 -0.1915 -0.2382 -0.0056 -0.0491
  • 0.1380 0.1312 -0.1998 0.2953 -0.0594 0.0249 0.0601 0.2746 0.1732 -0.1546 -0.0911 0.0486 -0.2782 -0.1857
  • 0.1738 0.2413 -0.0593 0.1581 -0.0419 -0.0871 -0.0915
  • 0.1157 -0.0371 -0.0600 -0.0324 0.0636 0.0218 -0.2488
  • 0.0791 0.1023 0.3539 -0.0049 -0.0772 0.0718 0.0670
  • 0.1777 -0.1486 -0.4029 -0.2446 -0.1548 -0.0532 -0.0135
  • 0.0085 0.2494 -0.0501 0.4673 -0.3726 -0.0883 0.1060
  • 0.2146 0.0099 0.0790 0.1245 -0.1426 -0.0289 0.0583 0.0078 0.2616 -0.0253 0.1491 -0.1912 -0.0581 0.0022 0.1112 0.0600 -0.0265 0.1836 0.0704 0.2581 -0.1316
  • 0.0799 0.1029 0.0140 0.0990 -0.0951 -0.2408 0.0621 0.0780 0.1891 0.0201 -0.0585 -0.0509 -0.2968
  • 0.0544 0.2443 0.3123 0.2697 0.0147 -0.0747 -0.1412 0.2310 0.0996 -0.1521 -0.2686 0.0263 0.1131 0.1013 0.1288 -0.0350 -0.1478 -0.1183 -0.0461 -0.0608 0.0330
  • 0.2089 0.0086 0.1193 -0.0118 -0.1303 -0.1212 -0.2594 0.1088 0.1711 -0.2852 -0.1595 0.0133 0.2597 0.0310 0.0335 -0.1904 0.1593 -0.1618 0.1870 0.0919 0.0481
  • 0.1243 -0.1285 -0.0901 -0.1704 -0.0177 -0.0906 0.0047
  • 0.0129 -0.0558 -0.0992 0.1981 -0.2923 -0.0373 -0.0483 0.0807 0.1506 0.0740 0.3019 -0.0418 0.0251 -0.0299
  • 0.0414 0.1145 0.3234 0.0291 -0.0090 -0.1277 -0.0571 0.1628 -0.1336 0.2104 0.0370 -0.0904 0.0905 -0.0866 0.2757 0.1223 -0.1163 -0.1531 0.1771 -0.2996 -0.1156 0.0702 -0.1835 -0.1123 0.1488 -0.0328 -0.0623 -0.1749 0.0597 0.2969 -0.1597 -0.0197 0.0196 0.0016 0.0308 0.2720 0.0685 -0.0050 0.3221 -0.3471 0.0392

  0.2563 0.1763 0.1420 -0.1188 -0.0082 -0.4117 0.1631 0.1642 0.1268 -0.1091 0.0444 -0.0859 0.1130 -0.0485

  • 0.0927 -0.1752 -0.2370 -0.1132 0.0889 -0.0937 0.0302
  • 0.2923 -0.0237 -0.0251 0.2337 0.0936 -0.1382 0.1695 0.2320 -0.2219 0.1212 -0.0530 0.0170 -0.0033 -0.0952
  • 0.0790 0.2745 0.1364 0.1497 -0.0549 0.0229 -0.0776
  • 0.2276 0.1690 0.0247 0.0427 -0.2111 0.3746 -0.0064
  • 0.0252 0.1293 0.1160 -0.1862 -0.0069 0.2489 -0.0377
  • 0.1163 -0.4803 0.0898 0.0663 -0.1813 0.0659 -0.1069 0.3724 -0.3469 0.0219 0.2863 0.1036 0.0726 0.1933 0.0250 -0.0408 -0.1135 0.1225 0.0702 0.2031 -0.2542 0.0614 0.2118 0.1542 -0.0163 -0.0183 -0.1660 -0.3151
  • 0.0163 -0.0983 -0.0219 0.0548 0.2584 -0.0378 0.1578
  • 0.1316 -0.2149 0.2227 -0.0048 0.1668 -0.2594
  • 0.2490 -0.0377 0.1153 -0.1392 -0.2199 0.1628 0.0004
  • 0.0558 0.0924 -0.0417 -0.0009 0.0323 0.1133 -0.1543
  • 0.1276 -0.1304 0.0330 -0.1468 0.2304 -0.0542 0.1014 0.1315 0.0300 -0.2530 0.0088 0.1407 0.0045 -0.0654

  0.0268 -0.2459 -0.1759 -0.1762 -0.0177 0.1982 -0.0018

  • 0.0491 -0.0529 -0.2203 0.1275 0.1848 0.0562 0.2135 0.1222 -0.1876 -0.0524 -0.1289 -0.0030 0.1529 0.1815 0.0104 0.0510 0.0019 -0.0225 0.0847 -0.1337 0.1102
  • 0.2269 0.0161 0.2029 -0.0687 -0.1398 -0.0105 0.1470 0.2370 -0.1834 0.2514 -0.1777 -0.1032 0.1701 -0.2238 0.1929 -0.1030 0.1822 0.1619 -0.1508 0.0866 0.1617
  • 0.0501 0.1434 0.0231 0.0943 0.0928 -0.2055 0.1350
  • 0.0192 -0.1634 -0.1365 0.1867 -0.1548 -0.1843 0.0054 ]; baru.b{2} = [ -1.4232
  • 0.5882
  • 0.1564 0.8681
  • 1.4395 ]; baru.LW{3,2} = [ 0.2448 0.4426 -0.9057 0.6060 0.3804 ]; baru.b{3} = [ -0.3093 ]; hsl = sim(baru,n)

  3. Source Code untuk Form Utama function varargout = Utama(varargin) % Inisialisasi GUI

  gui_Singleton = 1; gui_State = struct( 'gui_Name' , mfilename, ...

  'gui_Singleton' , gui_Singleton, ... 'gui_OpeningFcn' , @Utama_OpeningFcn, ... 'gui_OutputFcn' , @Utama_OutputFcn, ... 'gui_LayoutFcn' , [] , ... 'gui_Callback' , []); if nargin && ischar(varargin{1})

  gui_State.gui_Callback = str2func(varargin{1});

  end if nargout

  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

  else

  gui_mainfcn(gui_State, varargin{:});

  end function Utama_OpeningFcn(hObject, eventdata, handles, varargin) % Default command line output untuk Utama

  handles.output = hObject;

  % Update handles structure

  guidata(hObject, handles); % --- Outputs from this function are returned to the command line.

  function varargout = Utama_OutputFcn(hObject, eventdata, handles)

  varargout{1} = handles.output;

  function akarbutton_Callback(hObject, eventdata, handles)

  function batangbutton_Callback(hObject, eventdata, handles)

  Batang

  function bidsadapbutton_Callback(hObject, eventdata, handles)

  BidSadap

  function daunbutton_Callback(hObject, eventdata, handles)

  Daun

  function daftarbutton_Callback(hObject, eventdata, handles)

  DaftarPenyakit

  function keluarbutton_Callback(hObject, eventdata, handles)

  respon = Keluar( 'Title' , 'konfirmasi keluar' );

  switch lower(respon) case 'tidak' % tidak ada aksi case 'ya'

  close

  end

  4. Source Code untuk Form Akar function varargout = Akar(varargin) %Insialisasi GUI

  gui_Singleton = 1; gui_State = struct( 'gui_Name' , mfilename, ...

  'gui_Singleton' , gui_Singleton, ... 'gui_OpeningFcn' , @Akar_OpeningFcn, ... 'gui_OutputFcn' , @Akar_OutputFcn, ... 'gui_LayoutFcn' , [] , ... 'gui_Callback' , []); if nargin && ischar(varargin{1})

  gui_State.gui_Callback = str2func(varargin{1});

  end if nargout

  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

  else

  gui_mainfcn(gui_State, varargin{:});

  end function Akar_OpeningFcn(hObject, eventdata, handles, varargin) % Default command line output untuk form Akar

  handles.output = hObject;

  % Update handles structure

  guidata(hObject, handles); % --- Outputs from this function are returned to the command line.

  function varargout = Akar_OutputFcn(hObject, eventdata, handles)

  varargout{1} = handles.output;

  Akar

  function batang1button_Callback(hObject, eventdata, handles)

  Batang

  function bidsadap1button_Callback(hObject, eventdata, handles)

  BidSadap

  function daun1button_Callback(hObject, eventdata, handles)

  Daun

  function edit1a_Callback(hObject, eventdata, handles)

  akar1=str2num(get(handles.edit1a, 'String' )); handles.akar1=akar1;

  if (isempty(akar1))

  set(hObject, 'String' , '' ) % Mengembalikan string kosong jika

  edit1a kosong end

  guidata(hObject, handles);

  function edit1a_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1b_Callback(hObject, eventdata, handles)

  akar2=str2num(get(handles.edit1b, 'String' )); handles.akar2=akar2;

  if (isempty(akar2))

  set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

  function edit1b_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1c_Callback(hObject, eventdata, handles)

  akar3=str2num(get(handles.edit1c, 'String' )); handles.akar3=akar3;

  if (isempty(akar3))

  set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

  function edit1c_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1d_Callback(hObject, eventdata, handles)

  akar4=str2num(get(handles.edit1d, 'String' )); handles.akar4=akar4; set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

  function edit1d_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1e_Callback(hObject, eventdata, handles)

  akar5=str2num(get(handles.edit1e, 'String' )); handles.akar5=akar5;

  if (isempty(akar5))

  set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

% --- Executes during object creation, after setting all properties.

  function edit1e_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1f_Callback(hObject, eventdata, handles)

  akar6=str2num(get(handles.edit1f, 'String' )); handles.akar6=akar6;

  if (isempty(akar6))

  set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

  function edit1f_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function edit1g_Callback(hObject, eventdata, handles)

  akar7=str2num(get(handles.edit1g, 'String' )); handles.akar7=akar7;

  if (isempty(akar7))

  set(hObject, 'String' , '' )

  end

  guidata(hObject, handles);

  function edit1g_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject, 'BackgroundColor' ),

  get(0, 'defaultUicontrolBackgroundColor' )) set(hObject, 'BackgroundColor' , 'white' );

  end function finish1button_Callback(hObject, eventdata, handles)

  close

  function reset1button_Callback(hObject, eventdata, handles) set(handles.edit1b, 'String' , '' ); set(handles.edit1c, 'String' , '' ); set(handles.edit1d, 'String' , '' ); set(handles.edit1e, 'String' , '' ); set(handles.edit1f, 'String' , '' ); set(handles.edit1g, 'String' , '' ); set(handles.texthasil1, 'String' , '' ); set(handles.textkendali1, 'String' , '' );

  function ok1button_Callback(hObject, eventdata, handles)

  akar1=handles.akar1; akar2=handles.akar2; akar3=handles.akar3; akar4=handles.akar4; akar5=handles.akar5; akar6=handles.akar6; akar7=handles.akar7; x1=0; x2=0; x3=0; x4=0; x5=0; x6=0; x7=0; n=[akar1 akar2 akar3 akar4 akar5 akar6 akar7]; m=[x1 x2 x3 x4 x5 x6 x7]; input=[n;m]; input=input'; net=newff([0 1;0 1;0 1;0 1;0 1;0 1;0 1],[104 5 1],{ 'tansig''tansig''purelin' }, 'traingd' ); net.IW{1,1} = [ 1.8360 2.5665 -1.4949 -2.3878 0.6016

  • 2.6789 -2.0332 1.4159 3.3321 -0.4983 -1.5353 2.3723 2.5375
  • 1.6079 1.1765 -0.4878 2.9799 -0.1668 2.1139 2.9270 2.4414
  • 3.3509 3.3834 1.4193 -0.8450 0.5848 1.8930 0.4797
  • 2.2695 -0.3365 -2.9913 -2.9827 0.8685 -0.7559 2.2390
  • 1.5759 1.3642 3.5716 -2.6685 -1.4120 1.8086 0.1877
  • 2.0342 -2.2064 -2.4252 0.8717 -2.2925 2.2857 1.8820
  • 0.8132 1.3311 3.3470 0.6039 -3.4779 -0.0308
  • 1.8632 3.1327 -1.4763 -0.5783 -2.1731 0.9197 -2.1771
  • 2.6307
  • 2.6343 -2.5748 3.4138 -1.4671 -0.1780 -0.2580 1.4208
  • 1.2788 -1.4694 2.3402 0.7905 -2.7085 -2.5727
  • 2.3749 1.7386 3.6599 -0.1358 0.1125 0.3800 3.2569
  • 1.6313
  • 2.6328 2.3239 1.4054 -0.0741 -2.6648 -3.2125 -1.6527
  • 1.4150 1.6945 3.0484 0.8116 2.9229 0.9096 -0.6220 2.5864 2.4579 1.5106 0.8541 -2.6993 0.3835 3.6436 0.1100 3.4626 -2.5464 0.6573 2.0092 -0.7496 1.3589
  • 2.0533 2.6684 0.0903 1.2128 3.4281 2.1133 1.8772
  • 1.1047
  • 3.7102 -0.2505 -0.8341 -0.2701 -2.5982 -2.9547
  • 0.0917 0.4660 -0.2553 -3.8503 -0.2989 2.1232 -1.9678 2.4477 1.9300 3.0893 -2.8439 0.7921 -0.0711 2.1462
  • 1.6981
  • 2.6941 0.5969 3.1357 2.9224 -0.5236 1.6437 0.7540
  • 1.8717 -2.4605 -1.7240 -1.5771 1.2944 -0.5625 3.5592
  • 0.2036 2.4215 -2.2916 2.2345 2.5461 0.9627
  • 2.4364
  • 0.3112 0.8948 2.0421 -2.1002 4.1594 1.6357
  • 0.3637 2.5851 1.8333 -0.9603 1.8754 3.2979 -2.0830 0.1495
  • 1.6808 0.6281 1.9314 -1.4122 0.1531 -3.5876 2.7674
  • 2.4829 1.2709 1.8750 -1.5054 1.0723 -3.0990
  • 2.2970
  • 1.5344 1.9311 -2.7674 -2.0574 1.7959 -2.3284
  • 1.8171
  • 1.4609 -1.7407 1.8086 2.8546 -1.6327 2.0146 2.4885
  • 2.4537 -1.4638 2.4162 -2.5541 0.9942 -2.3040 1.6544 1.3782 0.7440 3.6558 1.9827 0.1545 -1.4530
  • 2.7548 0.1743 -2.2350 2.9463 -1.3200 -1.7413 1.5412 2.9472 1.4917 1.3034 3.1230 1.5004 -0.4936 -1.0736
  • 3.4975
  • 0.1196 2.7161 3.9163 1.7028 1.4456 0.1092
  • 1.3721
  • 1.5119 -2.4755 2.8666 -2.6452 1.1324 -1.6691 1.3331 0.2388 -0.8334 0.7056 -0.6860 1.6061 0.7968
  • 4.9605 2.6290 -1.7727 2.3350 -1.3266 2.5802 -0.1908 2.3850 1.8357 -1.5365 -2.0573 -2.6470 0.7784 1.6770 3.0364
  • 0.0388 1.4706 2.2501 0.3454 -3.5013 -3.1184
  • 0.4598 2.8579 1.9197 -0.5495 -1.2166 -0.5544 3.4898
  • 1.9342 3.5152 -1.1860 1.1405 -3.6219 -0.2221 -0.6637 0.9456

  2.6726

  • 1.5905 -3.0126 -3.2683 -0.8395 -2.0987 -0.6494 1.2538
  • 1.3246 -1.9969 -1.0530 1.8542 0.6605 2.4802
  • 3.5534
  • 1.4203 -2.6260 -2.8419 2.0237 0.2121 -0.0975 2.8969
  • 2.8882 -3.6089 0.1595 -0.9952 -1.5338 0.3921
  • 2.2117
  • 1.1347 2.3278 0.9309 1.5837 0.3806 -3.8850
  • 2.0638
  • 1.5853 -3.2131 -2.5780 -0.4991 -2.9708 0.7535
  • 0.8402 2.9623 -2.3731 -2.3079 -1.6593 -1.2614 -1.5830
  • 1.3973
  • 0.0737 -0.5986 4.0607 1.9486 -0.0904 1.6749
  • 2.4536 1.5381 -3.8849 3.2053 -0.6911 0.4668 0.1485
  • 1.0343
  • 2.2421 -2.1438 1.9661 2.7216 -0.5163 -1.9863
  • 2.1135
  • 0.4159 3.3572 -2.8550 0.9834 0.0643 2.3369 1.8596
  • 2.5282 0.3180 -3.5208 -0.8761 -0.7769 -2.9982 0.6158
  • 0.7599 3.1597 2.5075 -1.0606 -2.6223 -1.6768
  • 1.3563 0.5942 2.9103 -2.1613 -2.0418 2.3720 -0.3270 2.4867 2.3439 -2.5845 2.9047 0.5167 -0.9936 0.5060 2.7180 2.4868 -2.9979 2.6358 1.1578 0.4998 -2.3842
  • 0.3988
  • 2.0723 -2.8513 -2.2898 0.6419 0.5372 -2.2757
  • 2.5148 0.3547 2.7821 2.2454 2.6185 0.7628 -2.8930 0.8898
  • 1.2785 -1.5810 -1.0466 2.8459 1.1433 -0.8527 3.7333
  • 1.5014 -0.4364 -2.7834 -2.2446 1.5912 -1.5336 3.0798 2.5752 -0.7017 3.0492 1.1641 2.2353 -2.3170 1.2214 3.5733 -2.1968 -2.7473 1.5279 -0.6228 1.1641
  • 0.5667
  • 1.0472 -0.2057 -0.0834 2.5858 -2.2734 1.9368
  • 3.5729 0.0443 1.2386 1.6898 -0.0435 -3.0365 2.6248 3.0273 2.4286 -0.4602 3.7468 2.9701 -0.7783 -0.1824 0.2390 1.3467 -0.5830 3.1858 1.3151 2.6396 2.6913
  • 1.1450
  • 1.6795 -1.8612 -1.2415 -2.6036 2.5660 -2.8295 0.6120 0.7647 2.2738 2.6195 2.7015 1.9109 1.1615 2.3905
  • 1.5518 3.1923 0.9299 -3.5790 0.3158 1.7543
  • 0.3356

  1.6597 1.8994 3.4563 0.8578 0.9844 1.3109 1.1818 3.0398 0.7856 2.1647 -2.5481 -1.6505 1.7459 -2.7010

  • 2.1835 0.1379 2.7830 1.5350 1.5815 -3.2225 0.8580
  • 2.4098 1.6650 1.1996 3.9196 0.4031 -2.7902 -1.4346
  • 0.1104
  • 0.3827 2.2029 2.7804 1.8724 1.3951 -2.6043 1.9853
  • 2.7208 -3.7937 -0.6954 -1.9080 -1.2486 1.3901
  • 0.4972 3.7566 0.7628 -1.4275 -2.0115 1.0835 0.3943
  • 2.6750
  • 2.4074 2.4502 -1.9100 2.1879 1.6574 -1.6473 1.9231 0.5440 -1.8086 1.8420 -2.5948 -1.7844 -0.7700
  • 3.4713 3.3118 -2.6109 -1.2187 -1.8143 2.4490 -0.0174
  • 0.9347
  • 2.1299 -1.6113 -2.9744 0.4367 2.8166 -0.3901 2.2962 0.0747 -2.2083 2.8804 2.1239 -0.5396 1.7173 2.9489
  • 0.9507 0.6042 1.9228 -2.2625 -1.8342 -3.6613 1.6439 3.2629 -1.4976 0.1103 0.2040 -2.5264 3.1949
  • 0.0128
  • 0.0551 1.4547 2.1427 -1.9507 2.1609 2.5723
  • 2.7909 1.7162 -0.6029 3.3361 0.5708 2.5757 -1.9954
  • 2.0386
  • 1.1354 2.8381 4.0351 -1.1231 1.5364 0.0644
  • 0.2940
  • 1.9702 -3.2975 -1.2537 -0.1270 -3.6263 -0.1243 0.1643 3.0388 2.2236 -1.7969 -0.3829 -1.1424 -3.1795 0.6902 1.4842 2.1235 -2.3691 2.8494 -2.9383 -0.6183
  • 0.1790 2.5236 -1.8462 -0.4928 3.4197 -2.5333 -0.9174
  • 0.6481
  • 0.1333 1.9461 2.8457 2.9153 -0.9170 -2.8218 0.0803 0.4689 1.1399 1.2983 -2.7349 2.7268 2.4239
  • 2.3409 1.9793 2.4692 -1.7071 2.8021 1.4102 1.3306
  • 2.2536 1.7216 2.6279 -1.3211 -2.1944 -1.7713 0.2056
  • 3.1508
  • 1.7424 3.4539 -2.2449 0.1859 2.2628 1.5429 1.3910
  • 1.4882 2.0209 -1.0363 -2.9447 -1.9157 -3.1109 0.3598
  • 0.1230 2.4606 -1.5563 -0.3025 2.6234 2.7549
  • 2.5611 3.3055 -1.1023 -0.8441 -1.4341 -1.4971 -3.3816
  • 1.0958

  3.0726 1.3604 3.5506 -0.3902 -1.0542 2.3226 0.0089

  • 2.9038 ]; net.b{1} = [ -0.8723
  • 5.4756
  • 8.1100 0.7733 5.6402 1.8554 4.3271 2.8177

  0.1386 3.4009 5.8698

  • 5.7494 4.3674 0.6729
  • 7.7097
  • 4.9877
  • 2.9793
  • 6.9665 6.9950
  • 1.0289
  • 3.3335
  • 1.3326 3.1617 0.0336
  • 1.5174
  • 4.6881 1.9674 3.8644 4.5759
  • 1.1468 2.9914
  • 2.9710
  • 2.1773
  • 2.1363
  • 3.2458 2.3922 0.7097
  • 4.0540
  • 1.1447 2.1904
  • 2.4593
  • 0.3633
  • 1.4762 5.5785 1.8630 1.2793 5.5674 1.1397

  5.5864 3.9829

  • 2.2075 0.1352 2.1238
  • 2.7832 4.7246
  • 1.6607
  • 2.4341
  • 0.1510 4.9823
  • 2.9803
  • 2.1174 1.3046
  • 2.9729 0.6125 0.6612
  • 1.9318
  • 3.1691
  • 3.8485 2.5459
  • 5.7154
  • 1.3870 0.9874
  • 5.2008 3.3406 0.5771
  • 0.2043
  • 5.1194 3.3057 1.7019
  • 2.7046 5.5909 2.1016
  • 0.9248
  • 1.7217 0.5001 0.5150
  • 3.6321 0.0411
  • 4.9997 3.0980 2.4252 1.9940 2.5220
  • 4.3194 0.8817
  • 0.7099 4.3487
  • 4.8917 1.5770
  • 4.1730 5.5949 0.6299 1.2957 ]; net.LW{2,1} = [ 0.1474 0.1029 0.0506 0.1747 0.1039
  • 0.1873 0.1683 0.1991 0.1560 -0.0496 0.1165 0.1555
  • 0.1026 -0.1574 0.1153 0.0856 -0.1051 -0.1738 -0.2104 0.0913 0.0542 -0.1200 -0.1487 -0.1034 0.0798 -0.1426 0.0891 -0.1188 -0.1377 0.0608 -0.0785 0.0771 0.1401 0.2120 0.2037 -0.2064 0.1433 -0.0874 -0.1982 -0.0387
  • 0.0414 0.1386 -0.0930 0.0880 -0.1477 0.0580 -0.0802 0.0751 0.0519 0.2265 -0.2004 0.2026 0.1666 -0.1906 0.1908 0.0274 -0.2023 0.0848 0.0476 0.1118 0.1872
  • 0.0745 0.0620 0.1422 -0.1003 0.2212 0.1632 0.2439

  0.0135 0.1953 0.1479 0.1970 0.1504 -0.2033 0.1800

  • 0.1409 -0.0397 -0.2001 -0.0733 0.1124 0.1950 -0.1132
  • 0.1231 -0.1700 0.0506 -0.1041 0.2042 0.2474 0.0786 0.0461 -0.1594 0.2232 0.1119 0.0796 -0.0127 -0.2296
  • 0.1646 0.1473 0.1523 -0.0971 0.0501 -0.1999 0.0351 -0.0169 -0.0884 -0.1478 0.1066 -0.2128 0.0339
  • 0.0097 -0.1862 0.1587 0.1390 0.3281 0.0756 -0.0226
  • 0.0297 0.1362 -0.1082 0.1718 0.1365 -0.0910 0.1275 0.0800 -0.0087 -0.0319 -0.1381 -0.1915 -0.2382 -0.0056
  • 0.0491 -0.1380 0.1312 -0.1998 0.2953 -0.0594 0.0249 0.0601 0.2746 0.1732 -0.1546 -0.0911 0.0486 -0.2782
  • 0.1857 -0.1738 0.2413 -0.0593 0.1581 -0.0419 -0.0871
  • 0.0915 -0.1157 -0.0371 -0.0600 -0.0324 0.0636 0.0218
  • 0.2488 -0.0791 0.1023 0.3539 -0.0049 -0.0772 0.0718 0.0670 -0.1777 -0.1486 -0.4029 -0.2446 -0.1548 -0.0532
  • 0.0135 -0.0085 0.2494 -0.0501 0.4673 -0.3726 -0.0883 0.1060 -0.2146 0.0099 0.0790 0.1245 -0.1426 -0.0289 0.0583 0.0078 0.2616 -0.0253 0.1491 -0.1912 -0.0581 0.0022 0.1112 0.0600 -0.0265 0.1836 0.0704 0.2581
  • 0.1316
  • 0.0799 0.1029 0.0140 0.0990 -0.0951
  • 0.2408 0.0621 0.0780 0.1891 0.0201 -0.0585 -0.0509
  • 0.2968 -0.0544 0.2443 0.3123 0.2697 0.0147 -0.0747
  • 0.1412 0.2310 0.0996 -0.1521 -0.2686 0.0263 0.1131 0.1013 0.1288 -0.0350 -0.1478 -0.1183 -0.0461 -0.0608 0.0330 -0.2089 0.0086 0.1193 -0.0118 -0.1303 -0.1212
  • 0.2594 0.1088 0.1711 -0.2852 -0.1595 0.0133 0.2597 0.0310 0.0335 -0.1904 0.1593 -0.1618 0.1870 0.0919 0.0481 -0.1243 -0.1285 -0.0901 -0.1704 -0.0177 -0.0906 0.0047 -0.0129 -0.0558 -0.0992 0.1981 -0.2923 -0.0373
  • 0.0483 0.0807 0.1506 0.0740 0.3019 -0.0418 0.0251
  • 0.0299 -0.0414 0.1145 0.3234 0.0291 -0.0090 -0.1277
  • 0.0571 0.1628 -0.1336 0.2104 0.0370 -0.0904 0.0905
  • 0.0866 0.2757 0.1223 -0.1163 -0.1531 0.1771 -0.2996
  • 0.1156 0.0702 -0.1835 -0.1123 0.1488 -0.0328 -0.0623
  • 0.1749 0.0597 0.2969 -0.1597 -0.0197 0.0196 0.0016 0.0308 0.2720 0.0685 -0.0050 0.3221 -0.3471 0.0392 0.2563 0.1763 0.1420 -0.1188 -0.0082 -0.4117 0.1631 0.1642 0.1268 -0.1091 0.0444 -0.0859 0.1130
  • 0.0485 -0.0927 -0.1752 -0.2370 -0.1132 0.0889 -0.0937 0.0302 -0.2923 -0.0237 -0.0251 0.2337 0.0936 -0.1382 0.1695 0.2320 -0.2219 0.1212 -0.0530 0.0170 -0.0033
  • 0.0952 -0.0790 0.2745 0.1364 0.1497 -0.0549 0.0229
  • 0.0776 -0.2276 0.1690 0.0247 0.0427 -0.2111 0.3746
  • 0.0064 -0.0252 0.1293 0.1160 -0.1862 -0.0069 0.2489
  • 0.0377 -0.1163 -0.4803 0.0898 0.0663 -0.1813 0.0659
  • 0.1069 0.3724 -0.3469 0.0219 0.2863 0.1036 0.0726 0.1933 0.0250 -0.0408 -0.1135 0.1225 0.0702 0.2031
  • 0.2542 0.0614 0.2118 0.1542 -0.0163 -0.0183 -0.1660
  • 0.3151 -0.0163 -0.0983 -0.0219 0.0548 0.2584 -0.0378 0.1578
  • 0.1316 -0.2149 0.2227 -0.0048 0.1668
  • 0.2594 -0.2490 -0.0377 0.1153 -0.1392 -0.2199 0.1628 0.0004 -0.0558 0.0924 -0.0417 -0.0009 0.0323 0.1133
  • 0.1543 -0.1276 -0.1304 0.0330 -0.1468 0.2304 -0.0542 0.1014 0.1315 0.0300 -0.2530 0.0088 0.1407 0.0045
  • 0.0654 0.0055 -0.1247 -0.0727 0.0434 0.1057 0.0674

  • 0.0018 -0.0491 -0.0529 -0.2203 0.1275 0.1848 0.0562 0.2135 0.1222 -0.1876 -0.0524 -0.1289 -0.0030 0.1529 0.1815 0.0104 0.0510 0.0019 -0.0225 0.0847 -0.1337 0.1102 -0.2269 0.0161 0.2029 -0.0687 -0.1398 -0.0105 0.1470 0.2370 -0.1834 0.2514 -0.1777 -0.1032 0.1701
  • 0.2238 0.1929 -0.1030 0.1822 0.1619 -0.1508 0.0866 0.1617 -0.0501 0.1434 0.0231 0.0943 0.0928 -0.2055 0.1350 -0.0192 -0.1634 -0.1365 0.1867 -0.1548 -0.1843 0.0054 ]; net.b{2} = [ -1.4232
  • 0.5882
  • 0.1564 0.8681
  • 1.4395 ]; net.LW{3,2} = [ 0.2448 0.4426 -0.9057 0.6060 0.3804 ]; net.b{3} = [ -0.3093 ]; y = sim(net,input); k = y(1,1);

  if (k < -0.5)

  k = -1; hasil1 = 'Akar sakit' ; kendali1 = '' ;

  elseif (k>= -0.5 & k<= 0.5)

  k = 0; hasil1 = 'Akar sehat' ; kendali1 = '' ;

  else

  k = 1; hasil1 = 'Akar terserang penyakit Akar putih' ; kendali1 = 'Tanah pada leher akar tanaman harus dibuka dengan

  membuat lubang berjarak 30 cm di sekeliling akar. Kedalaman lubang tergantung pada batas serangan jamur. Kemudian benang-benang jamur yang menempel pada akar dikerok. Akar yang sudah rusak berat atau busuk dipotong dan dimusnahkan. Bagian luka akibat kerokan atau potongan ditutup dengan ter. Selanjutnya keseluruhan akar yang terluka diolesi Izal 5%. Setelah itu, diolesi pelumas obat pelindung akar. Setelah luka mengering, akar ditutup kembali dengan tanah.' ; end

  set(handles.texthasil1, 'String' ,hasil1); set(handles.textkendali1, 'String' ,kendali1);

  function varargout = DaftarPenyakit(varargin) % Inisialisasi GUI

  gui_Singleton = 1; gui_State = struct( 'gui_Name' , mfilename, ...

  'gui_Singleton' , gui_Singleton, ... 'gui_OpeningFcn' , @DaftarPenyakit_OpeningFcn, ... 'gui_OutputFcn' , @DaftarPenyakit_OutputFcn, ...

  'gui_Callback' , []); if nargin && ischar(varargin{1})

  gui_State.gui_Callback = str2func(varargin{1});

  end if nargout

  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

  else

  gui_mainfcn(gui_State, varargin{:});

  end function DaftarPenyakit_OpeningFcn(hObject, eventdata, handles,

  varargin)

  % Default command line output untuk DaftarPenyakit

  handles.output = hObject;

  % Update handles structure

  guidata(hObject, handles); % --- Outputs from this function are returned to the command line.

  function varargout = DaftarPenyakit_OutputFcn(hObject, eventdata,

  handles) varargout{1} = handles.output;

  function tutupbutton_Callback(hObject, eventdata, handles)

  close

  6. Source Code untuk Form Keluar function varargout = Keluar(varargin) % Inisialisasi GUI

  gui_Singleton = 1; gui_State = struct( 'gui_Name' , mfilename, ...

  'gui_Singleton' , gui_Singleton, ... 'gui_OpeningFcn' , @Keluar_OpeningFcn, ... 'gui_OutputFcn' , @Keluar_OutputFcn, ... 'gui_LayoutFcn' , [] , ... 'gui_Callback' , []); if nargin && ischar(varargin{1})

  gui_State.gui_Callback = str2func(varargin{1});

  end if nargout

  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

  else

  gui_mainfcn(gui_State, varargin{:});

  end function Keluar_OpeningFcn(hObject, eventdata, handles, varargin) % Choose default command line output for Keluar

  handles.output = 'Yes' ;

  guidata(hObject, handles);

  if (nargin > 3) for index = 1:2:(nargin-3), if nargin-3==index, break , end switch lower(varargin{index}) case 'title'

  set(hObject, 'Name' , varargin{index+1});

  case 'string'

  set(handles.text1, 'String' , varargin{index+1});

  end end end

  FigPos=get(0, 'DefaultFigurePosition' ); OldUnits = get(hObject, 'Units' ); set(hObject, 'Units' , 'pixels' ); OldPos = get(hObject, 'Position' ); FigWidth = OldPos(3); FigHeight = OldPos(4);

  if isempty(gcbf)

  ScreenUnits=get(0, 'Units' ); set(0, 'Units' , 'pixels' ); ScreenSize=get(0, 'ScreenSize' ); set(0, 'Units' ,ScreenUnits); FigPos(1)=1/2*(ScreenSize(3)-FigWidth); FigPos(2)=2/3*(ScreenSize(4)-FigHeight);

  else

  GCBFOldUnits = get(gcbf, 'Units' ); set(gcbf, 'Units' , 'pixels' ); GCBFPos = get(gcbf, 'Position' ); set(gcbf, 'Units' ,GCBFOldUnits); FigPos(1:2) = [(GCBFPos(1) + GCBFPos(3) / 2) - FigWidth / 2, ... (GCBFPos(2) + GCBFPos(4) / 2) - FigHeight / 2];

  end

  FigPos(3:4)=[FigWidth FigHeight]; set(hObject, 'Position' , FigPos); set(hObject, 'Units' , OldUnits);

  % Menampilkan icon dialog

  load dialogicons.mat IconData=questIconData; questIconMap(256,:) = get(handles.figure1, 'Color' ); IconCMap=questIconMap; Img=image(IconData, 'Parent' , handles.axes1); set(handles.figure1, 'Colormap' , IconCMap); set(handles.axes1, ...

  'Visible' , 'off' , ... 'YDir' , 'reverse' , ... 'XLim' , get(Img, 'XData' ), ... 'YLim' , get(Img, 'YData' ) ...

  );

  uiwait(handles.figure1); % --- Outputs from this function are returned to the command line.

  function varargout = Keluar_OutputFcn(hObject, eventdata, handles) % Get default command line output from handles structure

  varargout{1} = handles.output; delete(handles.figure1);

  function yabutton_Callback(hObject, eventdata, handles)

  handles.output = get(hObject, 'String' ); guidata(hObject, handles); uiresume(handles.figure1);

  function figure1_CloseRequestFcn(hObject, eventdata, handles) if isequal(get(handles.figure1, 'waitstatus' ), 'waiting' )

  uiresume(handles.figure1);

  else

  delete(handles.figure1);

  end function figure1_KeyPressFcn(hObject, eventdata, handles) % Mengecek penekanan "enter" atau "escape" oleh user if isequal(get(hObject, 'CurrentKey' ), 'escape' ) % User pilih tidak dengan menekan escape

  handles.output = 'No' ; guidata(hObject, handles); uiresume(handles.figure1);

  end if isequal(get(hObject, 'CurrentKey' ), 'return' )

  uiresume(handles.figure1);

  end function tdkbutton_Callback(hObject, eventdata, handles)

  close