フィルターのクリア

How to delete an entire row in a cell array based on the occurrence of a character in one column?

1 回表示 (過去 30 日間)
This array has 3 columns. Values in column 1 change, but some of the cells contain '*' along with other numbers. The other numbers are never the same. How can I remove the entire row based on the nonoccurence of * in the first cell?
i.e.) myArray =
{'1*3', 100, 1
'2*4', 200, 3
'1*7', 400, 4}
etc.
  1 件のコメント
Paolo
Paolo 2018 年 7 月 30 日
編集済み: Paolo 2018 年 7 月 30 日
What is the desired output for that input?

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

採用された回答

Sean de Wolski
Sean de Wolski 2018 年 7 月 30 日
c2 = c(~contains(c(:,1),'*'),:)

その他の回答 (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