How to swap columns of a matrix??
    18 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ali nouri
 el 24 de Mzo. de 2020
  
    
    
    
    
    Respondida: Sayali
 el 6 de Jun. de 2023
            I have a matrix of 8760X30, the first 7 columns need to be swap with some other column. eg. the first and the second columns need to need to be swap with the 8 and 9 column.
0 comentarios
Respuesta aceptada
  Birdman
      
      
 el 24 de Mzo. de 2020
        Simple approach(Consider matrix A):
A(:,[1 2 8 9])=A(:,[8 9 1 2])
0 comentarios
Más respuestas (1)
Ver también
Categorías
				Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


