I have a 3D matrix called a. Apit= 3x4x20. And i want a matrix U(20,1) that gives me the sum of each 20 matrix. And i was doing this way: (i is 20)
for i = 1:t U(i,1) = sum(Apit(:,:,i));end
And when i run, it appears that error. Can you help me?
Best Answer