How can I change pairs?
이전 댓글 표시
I have pairs of A{i}=[ai bi]. How can I change them to pairs B{i}=[bi ai]. I like to use Matlab special features in matrices.
채택된 답변
추가 답변 (1개)
Walter Roberson
2014년 1월 23일
B = mat2cell( fliplr(cell2mat(A)), ones(length(A)), length(A{1});
댓글 수: 1
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!