From: Bernd on 28 May 2010 12:19 Bruno Luong schrieb: > An alternative single-line solution is: > > sum(bsxfun(@times,permute(r,[1 3 2]),permute(S,[3 1 2])),3) > > The for loop might be still faster. > > Bruno Thank you for your proposals. In fact the loop was realy faster. But the other suggestions were also of value for me. I could learn new commands/programming techniques. Best regards, Bernd
First
|
Prev
|
Pages: 1 2 Prev: Removing NaN in order to take a mean Next: Finding values in scattered 3D data |