What am I doing wrong with this function?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
채택된 답변
Star Strider
2016년 6월 13일
편집: Star Strider
2016년 6월 13일
Maybe this is what you intend:
D = sortrows(data, [11 -7]);
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!