cell array: larger/ smaller than statement

6 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by