cell array: larger/ smaller than statement

5 vues (au cours des 30 derniers jours)
phlie
phlie le 13 Sep 2016
Commenté : phlie le 13 Sep 2016
I have a cell array A (with string and numeric entries). I would like to drop each row where the (purely numeric) value in column 5 is smaller than a constant c. How can I do it? Thanks in advance.

Réponse acceptée

Stephen23
Stephen23 le 13 Sep 2016
Much the same as per your last question:
c = 3;
Y = X(~cellfun(@(x)x<c,X(:,5)),:)

Plus de réponses (0)

Catégories

En savoir plus sur Data Types 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!

Translated by