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

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!

 채택된 답변

Matt Fig
Matt Fig 2012년 9월 28일
target=0.2;
vi=cellfun(@(x) x>=target,data(:,63));
data(vi,:);
data3 = data(vi,:);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Adding custom doc에 대해 자세히 알아보기

질문:

2012년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by