If C
is your cell array:
nums = [C{:,1}];
{:}
converts C
into a comma separated list (so {:,1}
only converts the first column) and then []
collects the results into a normal array. After that it's simple:
index = nums > Threshold;
C(index,:)
OR in a one liner:
C([C{:,1}] > Threshold, :) %// Or C([C{:,1}] > Threshold, 2) as Luis said