getting error: Undefined function 'ge' for input arguments of type 'cell'.

2 views (last 30 days)
I just renewed my matlab licence and now my scripts aren't working. For example, I imported a large excel dataset called "data" which is 317x113 cell. I want to then filter the dataset by column 63. Specifically, I want to only keep the data where column 63 is greater than or equal to 0.2 and rename it the filtered dataset "data3":
target=0.2;
vi=find(data(:,63)>=target);
data(vi,:);
data3 = data(vi,:);
This script has been working perfectly for a year and now with the new matlab it doesn't work!

Accepted Answer

Matt Fig
Matt Fig on 28 Sep 2012
target=0.2;
vi=cellfun(@(x) x>=target,data(:,63));
data(vi,:);
data3 = data(vi,:);

More Answers (0)

Community Treasure Hunt

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

Start Hunting!