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)),:)
  1 件のコメント
phlie
phlie 2016 年 9 月 13 日
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by