How to change two columns of a matrix?

3 visualizzazioni (ultimi 30 giorni)
Lei
Lei il 4 Mag 2012
Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

Risposta accettata

Lei
Lei il 4 Mag 2012
A(:,[i,j])=A(:,[j,i]);?

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by