From: Bernd on
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