Use intersect function in model
조회 수: 4 (최근 30일)
이전 댓글 표시
Dear all,
I need to get same elements of matrix (follow row) same as intersect function such as following:
- a = [ 3 0; 3 0; 1 3];
- b = [ 3 0; 3 1; 1 3];
- [same,~,~] = intersect(a,b,'rows')
- > same =
- 1 3
- 3 0
I used Matlab Function block and put intersect but has error:
The first operand is not sorted in ascending order. Use SORTROWS first
Anyone knows????
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
