フィルターのクリア

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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by