uant 发表于 2009-6-11 00:49

拜求高手指教~~~

X=;
>> fori=;
>> forj=;
>> p(i,j)=X(i,j)/300
??? Subscript indices must either be real positive integers or logicals.
那有错?
另: X=;
fori=;
>> a=zeros(1,0);
>> a=a+X(i,:);
??? Subscript indices must either be real positive integers or logicals.
请高手指教,小弟刚学,今天试做一题,不知哪里错了

friendchj 发表于 2009-6-11 14:41

for和i之间少了一个空格
页: [1]
查看完整版本: 拜求高手指教~~~