标题:MatLab中文件的读取操作有误,请教大家,谢谢啦!
取消只看楼主
wanguowan
Rank: 2
等 级:新手上路
威 望:3
帖 子:7
专家分:5
注 册:2010-7-7
结帖率:100%
已结贴  问题点数:20 回复次数:0 
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.
这是怎么回事啊,请高手指点!谢谢啦!
搜索更多相关主题的帖子: 有误 文件 MatLab 
2010-08-05 21:14



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-314921-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.046637 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved