How to copy all cell array row to other cell row
Show older comments
How to copy all cell array row to other cell row?
Because I can only copy one rows one cell at a time.
A = [1 2;3 4;5 6; 7 8; 9 10; 11 12];
Y = {};
Acell = [];
for Nr = 1:6
Acell{Nr} = A(Nr, :);
end
B = nchoosek(Acell,2)
C = B{1,:};
Y{1,1}=B{1,1}
Y{1,2}=B{1,2}
Y{2,1}=B{2}
Accepted Answer
More Answers (0)
Categories
Find more on Matrices and Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!