编程论坛's Archiver

张泽 发表于 2008-4-11 09:22

plot问题

P=[0 1 2 3 4 5 6 7 8 9 10];
T=[0 1 2 3 4 3 2 1 2 3 4]
net=newff([0 10],[5 1],{'tansig' 'purelin'},'traingd','learngd','msereg');
net.trainParam.epochs=200;
net=train(net,P,T);
figure;
Y=sim(net,p);
plot(P,T,P,Y,'o')

??? Error using ==> plot
Vectors must be the same lengths.

Error in ==> Untitled at 8
plot(P,T,P,Y,'o')

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.