Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how do i sort a single row in terms of descending terms

2 visualizaciones (últimos 30 días)
selborne
selborne el 20 de Abr. de 2013
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
i was given an excel file with 5 row and 5 columns and i need to sort the first column in terms of descending terms, i managed to successfully open the excel file on matlab

Respuestas (2)

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Abr. de 2013
[a,b,c]=xlsread('yourfile.xls')
out=sortrows(c,-1)

Matthias
Matthias el 20 de Abr. de 2013
Editada: Matthias el 20 de Abr. de 2013
If you only want to sort the first column have a look at
B = sort(A,dim)
If you want to sort the whole matrix according to the first column use
B = sortrows(A,-1)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by