运行时显示索引超出数组边界 希望有能力者给我解答一下 运行时到这里出现了错误 不知道怎么修改 希望得到一些指点
你好,应该是
VelocityMax = (bounds(:,1)-bounds(:,2))./r
你先输出下bounds里面有数据吗