cell array: larger/ smaller than statement

조회 수: 6 (최근 30일)
phlie
phlie 2016년 9월 13일
댓글: phlie 2016년 9월 13일
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