pca3 train_input=Z(1:1700,:)'; train_output=y(1:1700,:)'; test_input=Z(1701:1797,:)'; test_output=y(1701:1797,:)'; net=feedforwardnet([80,10]); net=train(net,train_input,train_output) vysl=net(test_input) figure; plot(1:97,test_output) hold on plot(1:97,vysl,'r') var(vysl-test_output) figure; bar(1:97,test_output) hold on scatter(1:97,round(vysl),25,'r','filled')