How to sort chunks of data file in descending order
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nick Elias
el 31 de Mzo. de 2021
Hello,
I have the attached data file (one column) where there are chunks of numbers separated by rows of zeros. I would like to know a quick way to sort every chunk of non zero numbers in descending order.
Thanks!
0 comentarios
Respuesta aceptada
KSSV
el 31 de Mzo. de 2021
Read the data using readtable and then use function sort.
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Shifting and Sorting 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!