edit-merging the values
조회 수: 11 (최근 30일)
이전 댓글 표시
I have a code
combinations = permute(cat(3,A,B),[3 2 1]);
1st combination:
combinations(:,:,1)
2nd combination:
combinations(:,:,2)
i haev 2 matrices of same size,100x6
so for every combination is there any for loop to procees as u said,because i have to write till 100 combination
combinations(:,:,1) ; ; ;
combinations(:,:,100)
is there any foor loop to perform these operation
댓글 수: 0
채택된 답변
Andrei Bobrov
2012년 1월 30일
so?
for j1 = 1:size(A,1)
fprintf(['combinations ',num2str(j1),' = ',mat2str(combinations(:,:,j1)),'\n']);
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!