MATLAB 向量化嵌套 for 循环
您好,我正在与 matlab 向量化作斗争,对此有任何帮助将非常感谢。
oldLocation
、Limit_
都是矩阵
for i=1:250
for j=1:350
temp= oldLocation(i,j,:)./Limit_(i,j,:);
end
end
Hi I am struggling with matlab vactorization any help on this would be great thanks.
oldLocation
, Limit_
are both matrices
for i=1:250
for j=1:350
temp= oldLocation(i,j,:)./Limit_(i,j,:);
end
end
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
直接进行除法即可。当然,您需要调整后面的代码(除非您继续覆盖
temp
)Just perform the division directly. Of course, you'll need to adapt the code that follows (unless you keep overwriting
temp
)