Sort every sixth column
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Hi
I have a big matrix (5X30), and i want to sort every sixth column in ascneding order.
I have tried to use sortrow(matrix,column) in a foor loop, but the problem is that the command only sort the last column in the for loop. It does not save alle the sort columns.
Any advice for this?
Thanks
Réponses (1)
matrix(:,1:6:end)=sort(matrix(:,1:6:end))
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!