%%RBF_cluster Algorithm
clear all
close all
clc
format long
global p aim center w2 b1 b2 sc inputps outputs p2
%% 导入数据
M1=[-2.185442662 0.448457613 0.126512202 -0.545912727 0.104116636 0.057634157
-2.186214275 0.445885936 0.129558388 -0.54550385 0.104736151 0.057781435
-2.186661193 0.447366926 0.130860574 -0.544773071 0.10482128 0.056124321
-2.177088152 0.440201208 0.113124451 -0.553609868 0.103502687 0.067670569
-2.178286747 0.445514869 0.126641139 -0.545380178 0.101762965 0.058868217
-2.193486116 0.445441213 0.124259937 -0.552288586 0.098258176 0.06477342
-2.181570867 0.443274071 0.127722027 -0.548419421 0.106211105 0.05929707
-2.183746396 0.444783674 0.121372212 -0.551746625 0.0998623 0.065374089
-2.172619623 0.442841138 0.113917626 -0.550865497 0.106935393 0.062783689
-2.186224672 0.443985783 0.134679322 -0.546894207 0.101069549 0.059154791
-2.186447051 0.442395154 0.119087349 -0.552911888 0.103971677 0.066681435
-2.180226862 0.442952696 0.118874264 -0.552610763 0.102490055 0.066407646
-2.212338282 0.456364735 0.16601622 -0.530455221 0.092999573 0.044644589
-2.180432129 0.448758481 0.135922948 -0.540438636 0.099353032 0.051626772
-2.171334378 0.448288185 0.127170808 -0.538293068 0.106400335 0.058276878
-2.178438174 0.455951271 0.133457989 -0.531680629 0.094232386 0.050517969
-2.153066033 0.449733164 0.129208428 -0.530518859 0.111259822 0.047035764
-2.176946286 0.450833395 0.129476108 -0.538874555 0.104318471 0.054124054
-2.194442388 0.446503151 0.130057086 -0.549012105 0.099400057 0.059872494
-2.173485034 0.444452422 0.124223771 -0.546440013 0.104240457 0.057699981
];
M2=[-0.277200743 -1.352778067 0.701035235 0.727671473 -0.885719667 -0.242774547
-1.261774723 -0.751001352 0.315566748 0.638952142 0.239203118 -0.685939089
-1.435921335 -0.647198125 0.270151403 0.63455347 0.433109177 -0.770650435
-0.993998742 -0.925029752 0.47479706 0.706578366 0.068434932 -0.636100122
-1.241582649 -0.707226216 0.343900723 0.723416892 0.323604073 -0.764443053
-0.235422182 -1.393383189 0.670277319 0.686632283 -0.92608191 -0.200430505
-1.091842332 -0.847824858 0.3792767 0.701000779 0.16991774 -0.665142716
-1.821621294 -0.46692743 0.098010343 0.569378485 0.70639919 -0.847048596
-1.250567018 -0.760917276 0.369648122 0.725501284 0.158738871 -0.709456135
-0.411160854 -1.21079983 0.408991201 0.592796723 -0.667932959 -0.197690333
-0.658039565 -1.043704353 0.492069286 0.734048372 -0.346559347 -0.472169369
-1.118562389 -0.877445752 0.371788204 0.630600482 0.01865377 -0.578076098
-0.15058316 -1.428157222 0.729634723 0.664976985 -1.071462511 -0.120238819
-0.415877528 -1.335181299 0.589219376 0.628262747 -0.805283694 -0.199552626
-0.655201199 -1.194562786 0.518080983 0.654486381 -0.536749225 -0.326792552
-0.692006099 -1.241292307 0.567257511 0.576094138 -0.706215458 -0.247118912
-0.353327064 -1.281900334 0.610523911 0.774878587 -0.612770405 -0.380745049
-0.171793393 -1.43278172 0.748532359 0.699038363 -0.900617249 -0.216625493
-1.344224115 -0.698024064 0.359261173 0.672242319 0.458200729 -0.810792579
-0.638470503 -1.095156228 0.522646308 0.676120899 -0.309137819 -0.44937715
];
M3=[1.53029853 -1.52319249 -0.108618895 0.80927985 0.616944855 0.147188874
2.096663454 -1.87229083 0.199170251 0.915028702 -0.048164078 0.380950891
1.818395284 -1.681263103 0.047791203 0.882552137 0.308680186 0.233458483
2.235088845 -1.954432264 0.336315468 1.002370635 -0.09761048 0.300838015
1.560213319 -1.678508822 0.210675133 0.818747073 0.280743086 0.202350956
1.53626361 -1.571830369 -0.170551276 0.688895345 0.461820761 0.304374424
1.799352588 -1.639992062 -0.034619471 0.862112989 0.467041042 0.210871319
1.826458964 -1.734621891 0.206782136 0.99445764 0.350616557 0.140363414
2.239493639 -1.780415432 -0.067148757 1.003188909 0.293289984 0.24681369
1.322907013 -1.477970169 -0.269866155 0.570479235 0.595288842 0.310573458
1.701510601 -1.68462645 -0.034092926 0.679613078 0.31244408 0.365076336
2.043965251 -1.870103718 0.200459835 0.776430797 0.03759998 0.431009082
2.061614704 -1.917864179 0.117860481 0.814458882 -0.303311938 0.527058866
2.138445744 -1.867674846 0.060616149 0.909499946 0.054409333 0.343450487
2.272686718 -1.846988222 0.226961054 1.09583971 0.029818913 0.243387373
1.564670143 -1.740008121 0.008336314 0.623437423 -0.040888109 0.548577394
1.608084246 -1.661166291 -0.606911062 -0.225138812 -0.205203549 -0.823907482
1.637878023 -1.605599563 -0.036855395 0.829171748 0.356602169 0.292507837
1.779892336 -1.640644074 0.008062538 0.892746404 0.416604681 0.200014602
1.52186821 -1.550059103 -0.058056157 0.794376341 0.440560541 0.242348112
];
M4=[1.809781418 3.500559343 1.212501457 0.098351166 -1.199271432 -0.044419915
2.120411064 3.498806302 1.32153529 0.194235862 -1.30059175 -0.067037323
2.651564798 3.366199463 1.506432793 0.304936432 -1.635981328 0.006064406
1.981594092 3.527766485 1.206204988 0.165398256 -1.421673006 -0.001516782
2.684790467 3.046882533 0.778123762 -0.108204479 -1.077141143 0.302040382
2.278174876 3.33916949 1.306909983 0.309080951 -1.465543078 -0.040111303
3.065398899 2.933145163 0.326708449 -0.193311087 -0.407391649 0.295835684
2.967390113 2.624304631 0.413427273 -0.094363934 -0.187984129 0.199594345
2.243561788 3.404679243 1.402263777 0.171453085 -1.409376271 -0.002709114
1.767630172 3.532427256 1.273366317 0.073207412 -1.26669477 -0.011128736
1.95297036 3.472635921 1.299514504 0.149459179 -1.309487939 -0.061778243
3.405462966 2.487480515 0.565013618 -0.402622205 -1.173225998 0.735312745
3.364762857 2.729330348 0.451703347 -0.153030206 -1.126227374 0.56901166
3.204051556 2.730741791 0.451576869 -0.169489547 -0.48744152 0.34176237
3.516245471 2.589009523 0.508095889 -0.093127428 -0.978410039 0.491935534
3.362364422 2.613394057 0.474075528 -0.053040491 -0.593822128 0.311010118
2.647714919 2.766495997 0.137472932 -0.213152598 -0.319385108 0.295554237
2.457880024 3.254516843 1.465324753 0.245018587 -1.742649611 0.102244319
3.815252072 2.515081044 0.726450641 -0.000188381 -1.235552734 0.525793196
3.255174913 2.946149546 0.365551859 -0.100541359 -0.339573647 0.217673068
];
M5=[-0.143670216 -2.542446663 0.439982017 -0.270559168 2.077060558 -0.603110531
1.382353577 -3.486948772 1.009823851 -0.155412008 0.359527765 0.082691507
-0.146548238 -2.551511061 0.406627209 -0.294757403 2.07891812 -0.58220081
2.64801647 -1.919930307 3.393085086 -1.17474071 -0.7606887 0.139272162
1.602396557 -1.162035758 3.041665723 -1.148865644 0.519406754 -0.465996662
1.318072474 -1.08270485 2.772122117 -1.26580686 0.671914634 -0.409475313
1.677907875 -1.287484442 2.925271468 -1.235386721 0.282551562 -0.268414658
1.136307881 -1.002522462 2.898351954 -1.202991258 0.789535193 -0.571212004
1.120689465 -0.951804495 2.752559158 -1.219832392 0.810494059 -0.526637548
0.971760433 -0.868703759 2.783197895 -1.316927516 0.918173605 -0.535582586
1.668819215 -1.227431161 2.896307777 -1.261566445 0.411783708 -0.358839004
1.857940197 -1.406005307 3.060807494 -1.219653584 0.155642481 -0.250084915
2.103013586 -1.498724733 3.067835351 -1.212621136 -0.079063659 -0.120378125
2.228895897 -1.659052845 3.255505023 -1.216391888 -0.295404345 -0.042548623
2.313728526 -1.611589303 3.094363294 -1.180927245 -0.32986246 -0.015337378
2.152150914 -1.496525058 3.048693554 -1.17495751 -0.136797063 -0.111189499
2.151176089 -1.585920099 3.205469211 -1.164349624 -0.269013017 -0.087149332
1.9986658 -1.509374978 3.129977106 -1.180340867 -0.030956564 -0.178432553
1.593200909 -1.212601637 3.036917176 -1.206832003 0.296599679 -0.352918547
1.548207924 -1.208035536 2.938339144 -1.197942149 0.44510549 -0.374649589
];
M6=[-0.320833506 -0.885563717 -0.393761594 1.861929419 -2.588280493 -0.314198723
-1.420945146 -0.199395698 -0.812958911 1.778676743 -1.334102635 -0.814982473
-1.042945198 -0.287339327 -0.536665649 2.128837307 -1.396163038 -0.998903155
-0.747199173 -0.607237251 -0.642965632 1.720912337 -2.209284