Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear;
- p =[1 3 2 3 2 1;
- 1 5 3 5 3 1;
- 1 5 3 2 4 2;
- 1 3 2 2 3 2;
- 1 3 2 3 2 3];
- t = [180 620 400 520 460 360]./1000;
- ptest=[1 2 1 3 1;
- 3 2 1 3 3]'
- net = newff(minmax(p), [2 1], {'purelin' 'purelin'});
- net.trainParam.epochs = 500;
- net = train(net, p, t);
- y = sim(net, p)
- y - t
- axis equal;
- plot(p, y,'o', p, t, '+')
- sim(net, ptest).*1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement