How to change two columns of a matrix?

조회 수: 3 (최근 30일)
Lei
Lei 2012년 5월 4일
Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

채택된 답변

Lei
Lei 2012년 5월 4일
A(:,[i,j])=A(:,[j,i]);?

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by