enqi01 发表于 2007-7-18 11:11

Vectors must be the same lengths

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

Error in ==> demogrn1 at 14
plot(P,T,'.')
请问怎样改


以下是程序
P =0:1:200;
T =;

plot(P,T,'.')
axis()
title('Function to approximate.')
xlabel('P')
ylabel('T')



spread = 0.7;
net = newgrnn(P,T,spread);
A = sim(net,P);

hold on
outputline = plot(P,A,'.','markersize',30,'color',);
title('Create and test a network.')
xlabel('P')
ylabel('T and A')



p = 3.5;
a = sim(net,p);
plot(p,a,'.','markersize',30,'color',);
title('New input value.')
xlabel('P and p')
ylabel('T and a')



P2 = 0:.1:9;
A2 = sim(net,P2);
plot(P2,A2,'linewidth',4,'color',)
title('Function to approximate.')
xlabel('P and P2')
ylabel('T and A2')

zhlong 发表于 2007-7-18 11:13

refer tohttp://forum.vibunion.com/forum/thread-46001-1-1.html

appleseed05 发表于 2007-7-18 16:04

看一下置顶贴,p,T的维数不相等
页: [1]
查看完整版本: Vectors must be the same lengths