0

I have a cell array and I am looking to remove some of the rows.

If a company in my cell array is not in companies_list I would like to remove the row from my cell array. I have tried the below however I get the error message:

Function 'subsindex' is not defined for values of class 'cell'.

Here is my code:

 indx = ismember(mycell.companies(:,1), companies_list(:,1));
 companies = mycell.companies(mycell.companies(indx == 1), :);
Mikhail_Sam
  • 10,602
  • 11
  • 66
  • 102
mHelpMe
  • 6,336
  • 24
  • 75
  • 150

0 Answers0