How to extract the set of values in matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have some set of values like
(line1) 0.1,0.69,0.81
(line2) 0.4,0.5,0.8
like this(about thousand line)
among these from line5 to line8 i have some set of values and they are repeated somewhere (not exactly same but almost same) like line32 to line35.. so how do i extract these set of values using Matlab?
댓글 수: 3
Sergio Zlotnik
2016년 2월 19일
Maybe this helps:
roundedTable = round(yourTable, nOfDigitsToRound);
noRepeatedRows = unique(roundedTable, 'rows');
채택된 답변
Walter Roberson
2016년 2월 19일
If you have R2015a or later, consider using http://www.mathworks.com/help/matlab/ref/ismembertol.html with 'ByRow' set.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!