Greetings,
I believe I understand what you are looking for so I wrote a script which I think will solve your problem. All you should need to do is put your data object in the variable A, instead of the matrix of all 1s that I used to test out the script while I was writing it.
A = ones(100,4100);
B = A(:,1:100);
C = A(:,101:200);
D = zeros(100,100);
for i = 1:100
for j = 1:100
D(i,j) = (B(i,j) + C(i,j))/2;
end
end
1 Comment
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/466303-adding-columns-in-a-cell#comment_713252
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/466303-adding-columns-in-a-cell#comment_713252
Sign in to comment.