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.

 Respuesta aceptada

Lei
Lei el 4 de Mayo de 2012

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Lei
el 4 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by