I have a 4D array A size(l,k,s,r) and a cell array B size(i,j) where in each cell a different 4D array of coefficients size(l,k,s,r) is stored.
I want to make changes in the given array C of size(i,j) = C(i,j) + sum(sum(sum(sum(A.*B{i,j})))) without for loop.
in other words I need to extract one by one all arrays out of cell array B and multiply with A.
with the for loop i do it this way:
for i=1:length_of_first_dimension
    for j=1:length_of_second_dimension
        B_4D=B{i,j};       % extraction of 4D array
        dummy(i,j)=sum(sum(sum(sum(B_4D.*A))));
    end
end
C=C+dummy;
can anyone help me with that?
 
     
    