I have a 1×27 cell array 'A' containing 27 [56×2] doubles. I also have a 27×2 matrix 'B'. I want to subtract all the elements from A{1} with B(1,:) and A{2} with B(2,:) and so on. How do I write a for loop for this?
MATLAB: Subtract matrices in an array ‘A’ with elements from matrix ‘B’
for loopmatrix manipulation
Best Answer