What am I doing wrong with this function?
1 view (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Star Strider
on 13 Jun 2016
Edited: Star Strider
on 13 Jun 2016
Maybe this is what you intend:
D = sortrows(data, [11 -7]);
3 Comments
More Answers (0)
See Also
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!