balletboy 发表于 2007-6-5 18:51

be real positive integers or logicals.这是什么问题?

??? Subscript indices must either be real positive integers or logicals.
Error in ==> bp1 at 10
np(i,:)=0.2+(p(i,:)-min(p(i,:)))/(max(p(i,:))-min(p(i,:)))*0.6;

zhzhguo 发表于 2007-6-5 19:30

这些看不出来,给出完整程序吧

mulan 发表于 2007-6-5 20:08

可能是你的i没有被赋值,matlab可能把i认作虚数了

eight 发表于 2007-6-5 20:19

原帖由 balletboy 于 2007-6-5 18:51 发表 http://www.chinavib.com/forum/images/common/back.gif
??? Subscript indices must either be real positive integers or logicals.
Error in ==> bp1 at 10
np(i,:)=0.2+(p(i,:)-min(p(i,:)))/(max(p(i,:))-min(p(i,:)))*0.6;

请自己设置断点,调试一下程序,保证下标索引为正整数
页: [1]
查看完整版本: be real positive integers or logicals.这是什么问题?