Effacer les filtres
Effacer les filtres

What am I doing wrong with this function?

1 vue (au cours des 30 derniers jours)
Sandy
Sandy le 13 Juin 2016
Commenté : CHLA_SAIC le 6 Sep 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?

Réponse acceptée

Star Strider
Star Strider le 13 Juin 2016
Modifié(e) : Star Strider le 13 Juin 2016
Maybe this is what you intend:
D = sortrows(data, [11 -7]);
  3 commentaires
Star Strider
Star Strider le 13 Juin 2016
My pleasure!
CHLA_SAIC
CHLA_SAIC le 6 Sep 2017
That worked nicely, thank you.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by