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 日

0 投票

target=0.2;
vi=cellfun(@(x) x>=target,data(:,63));
data(vi,:);
data3 = data(vi,:);

その他の回答 (0 件)

カテゴリ

質問済み:

2012 年 9 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by