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.

 Réponse acceptée

Lei
Lei le 4 Mai 2012

0 votes

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

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by