求问matlab 的这个报错怎么解决,万分感谢。
D(i,j)=sqrt(sum((citys(i,:)-citys(j,:)).^2));???Errorusing==>subsrefSubscriptindicesm...
D(i,j)=sqrt(sum((citys(i,:)-citys(j,:)).^2));
??? Error using ==> subsref Subscript indices must either be real positive integers or logicals. Error in ==> sym.subsref at 17 y = builtin('subsref',x,a); 展开
??? Error using ==> subsref Subscript indices must either be real positive integers or logicals. Error in ==> sym.subsref at 17 y = builtin('subsref',x,a); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询