How to delete multiple rows of particular values?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rachael Courts
le 20 Mai 2020
Commenté : Rachael Courts
le 25 Mai 2020
I have a matrix of 56298 x 15. Each column has a different header such as;
'UTC, startSeconds, duration...'
I am wanting to remove entire rows (for all columns) if the 'startSeconds' is equal to or lower than 2.37.
I've tried the 'find' function but I'm concerned that will only delete the value of the cell
2 commentaires
Réponse acceptée
Mohammad Sami
le 20 Mai 2020
Assuming that the variable is a matrix and the second column is startSeconds
rowstokeep = data(:,2) > 2.37;
data = data(rowstokeep,:);
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Tables 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!