How to change two columns of a matrix?

Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

 採用された回答

Lei
Lei 2012 年 5 月 4 日

0 投票

A(:,[i,j])=A(:,[j,i]);?

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

Lei
2012 年 5 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by