MatLab中文件的读取操作有误,请教大家,谢谢啦!
>> p=[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25]=textread('C:\Documents and Settings\Administrator\桌面\最近文件\data_p.txt','%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n','headerlines',25);t=[t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16,t17,t18,t19,t20,t21,t22,t23,t24,t25]=textread('C:\Documents and Settings\Administrator\桌面\最近文件\data_t.txt','%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n','headerlines',25);
net=newff(minmax(p),[5 1],{'tansig','purelin'},'traingd','learngdm','mse');
net.trainParam.goal=0.00001;
net.trainParam.epochs=1000;
[net,tr]=train(net,p,t);
save netWanBP6 net
load netWanBP6 net
p1=[c1,c2,c3,c4,c5]=textread('C:\Documents and Settings\Administrator\桌面\最近文件\data_p1','%n%n%n%n%n','headerlines',5);
a=sim(net,p1);
a1=int16(a);
??? p=[a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25]=textread('C:\Documents and Settings\Administrator\桌面\最近文件\data_p.txt','%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n','headerlines',25);
|
Error: The expression to the left of the equals sign is not a valid target for an assignment.
这是怎么回事啊,请高手指点!谢谢啦!