How to change two columns of a matrix?

2 vues (au cours des 30 derniers jours)
Lei
Lei le 4 Mai 2012
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
A(:,[i,j])=A(:,[j,i]);?

Plus de réponses (0)

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by