Hello,
Can anyone show me how I can reduce one dimension of the following array without using for loops. Thanks!
A=rand(100,100,100);for ith = 1:100 for jth = 1:100 B(ith,jth) = sum(A(ith,:,jth)) endend
for loops
A=rand(100,100,100);for ith = 1:100 for jth = 1:100 B(ith,jth) = sum(A(ith,:,jth)) endend
Best Answer