How to change two columns of a matrix?

2 Ansichten (letzte 30 Tage)
Lei
Lei am 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.

Akzeptierte Antwort

Lei
Lei am 4 Mai 2012
A(:,[i,j])=A(:,[j,i]);?

Weitere Antworten (0)

Kategorien

Mehr zu Numeric Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by