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

채택된 답변

Matt J
Matt J 2014년 9월 10일
myCell([myCell{:,3}]<0,:)=[]

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by