Borrar filtros
Borrar filtros

What am I doing wrong with this function?

1 visualización (últimos 30 días)
Sandy
Sandy el 13 de Jun. de 2016
Comentada: CHLA_SAIC el 6 de Sept. de 2017
I have the following code:
data = textread('new_data.txt');
D = sortrows(data,[11 7], {'ascend' 'descend'});
I get the following error:
Error using sortrows
Too many input arguments.
Error in Cross_Correlation (line 76)
D = sortrows(data,[11 7], {'ascend' 'descend'});
What am I doing wrong?

Respuesta aceptada

Star Strider
Star Strider el 13 de Jun. de 2016
Editada: Star Strider el 13 de Jun. de 2016
Maybe this is what you intend:
D = sortrows(data, [11 -7]);
  3 comentarios
Star Strider
Star Strider el 13 de Jun. de 2016
My pleasure!
CHLA_SAIC
CHLA_SAIC el 6 de Sept. de 2017
That worked nicely, thank you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by