Azzera filtri
Azzera filtri

What am I doing wrong with this function?

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Star Strider
Star Strider il 13 Giu 2016
Modificato: Star Strider il 13 Giu 2016
Maybe this is what you intend:
D = sortrows(data, [11 -7]);

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by