clear;clc;close all
data=[20.0000 260.0000 3.0000 20.0000 50.0000 50.0000 1.9120
20.0000 275.0000 4.0000 35.0000 75.0000 65.0000 1.5670
20.0000 290.0000 5.0000 50.0000 100.0000 80.0000 2.0250
30.0000 260.0000 3.0000 35.0000 75.0000 80.0000 1.9120
30.0000 275.0000 4.0000 50.0000 100.0000 50.0000 1.9790
30.0000 290.0000 5.0000 20.0000 50.0000 65.0000 1.3180
40.0000 260.0000 4.0000 20.0000 100.0000 65.0000 1.2760
40.0000 275.0000 5.0000 35.0000 50.0000 80.0000 1.4900
40.0000 290.0000 3.0000 50.0000 75.0000 50.0000 1.9260
20.0000 260.0000 5.0000 50.0000 75.0000 65.0000 1.7860
20.0000 275.0000 3.0000 20.0000 100.0000 80.0000 1.3130
20.0000 290.0000 4.0000 35.0000 50.0000 50.0000 1.9080
30.0000 260.0000 4.0000 50.0000 50.0000 80.0000 1.7280
30.0000 275.0000 5.0000 20.0000 75.0000 50.0000 1.4600
30.0000 290.0000 3.0000 35.0000 100.0000 65.0000 1.5930];
data=data';
input=data(1:6,:);
output=data(7,:);
net=newrb(log(input),output,0,1,30,5);
sim_output=sim(net,log(input));
figure
plot(output,'o-')
hold on
plot(sim_output,'r*:')
test_data=[40 260 5 35 100 50
40 275 3 50 50 65
40 290 4 20 75 80];
test_data=test_data';
test_output=sim(net,log(test_data))