How to effieiently index large arrays?

1 次查看(过去 30 天)
Donald
Donald 2011-10-24
I've noticed that indexing into large arrays takes a surprisingly long amount of time. Is there any general rules or tricks to speed this up.
Basically, I'm talking about: A = rand(M,P); B = zeros(N,P); B(aNdx,:) = A;

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by