cell array: larger/ smaller than statement
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
phlie
el 13 de Sept. de 2016
Comentada: phlie
el 13 de Sept. de 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.
Respuesta aceptada
Stephen23
el 13 de Sept. de 2016
Much the same as per your last question:
c = 3;
Y = X(~cellfun(@(x)x<c,X(:,5)),:)
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Types en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!