How to extract the set of values in matlab?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Gowrishankar R
le 19 Fév 2016
Réponse apportée : Walter Roberson
le 19 Fév 2016
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 commentaires
Sergio Zlotnik
le 19 Fév 2016
Maybe this helps:
roundedTable = round(yourTable, nOfDigitsToRound);
noRepeatedRows = unique(roundedTable, 'rows');
Réponse acceptée
Walter Roberson
le 19 Fév 2016
If you have R2015a or later, consider using http://www.mathworks.com/help/matlab/ref/ismembertol.html with 'ByRow' set.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!