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!

 Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by