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 で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!