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

1 vue (au cours des 30 derniers jours)
Jared
Jared le 10 Sep 2014
Réponse apportée : Matt J le 10 Sep 2014
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

Réponse acceptée

Matt J
Matt J le 10 Sep 2014
myCell([myCell{:,3}]<0,:)=[]

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by