for loop in indices count
显示 更早的评论
%I have some indices
iVmn =[679,605,619,655,685,601];
iVmx=[225,403,403,403,403,259];
I want to count between each value iVmn and iVmx, eg 225-679, 403 to 605, so on. Is there any elegent way to perform this as I an unable use for loop?
I am doing this way.
W1=iVmx(1):iVmn(1);
W2=iVmx(2):iVmn(2);
W3=iVmx(3):iVmn(3);
W4=iVmx(4):iVmn(4);
W5=iVmx(5):iVmn(5);
W6=iVmx(6):iVmn(6);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!