Deleting rows of cells array where one value in row is negative

1 回表示 (過去 30 日間)
Jared
Jared 2014 年 9 月 10 日
回答済み: Matt J 2014 年 9 月 10 日
I have a script where I'm creating a cell array from string and numeric data. After the creation of this cell array I want to delete any rows where the numerical value in column 3 of the cell array is negative and I haven't been able to figure out how to do this yet.
Any thoughts?
Thanks,
JK
  1 件のコメント
Image Analyst
Image Analyst 2014 年 9 月 10 日
Where is the example? You forgot to include it.

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

採用された回答

Matt J
Matt J 2014 年 9 月 10 日
myCell([myCell{:,3}]<0,:)=[]

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by