필터 지우기
필터 지우기

How to get rid of a loop?

조회 수: 1 (최근 30일)
Mnr
Mnr 2015년 11월 9일
편집: Image Analyst 2015년 12월 11일
Hello all,
Is there is way of getting rid of the following loop in order to speed up the code?
for mk=1:Mk
V(:,mk,:)=sms(:,dk(mk,:)+1,mk);
end
where sms can be for instance a 4x2x2 matrix and dk can be a 2x50 matrix. V would therefore have a size of 4x2x50.
Thanks!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by