isnan cellfun and dropping rows
    6 views (last 30 days)
  
       Show older comments
    
Hi, in my cell array X, I would like to drop all rows where the value of the 4th column is NaN (the new cell array is Y).
I am trying this:
Y = X(~any(cellfun(@isnan,X(:,4),'UniformOutput',false),2),:)
It returns the following error: Undefined function 'any' for input arguments of type 'cell'.
How do I have to change the code?
1 Comment
  Stephen23
      
      
 on 13 Sep 2016
				Not enough information: what is the cell array? What size are the arrays inside the cell array? Are all cell contents numeric?
Accepted Answer
More Answers (0)
See Also
Categories
				Find more on Cell Arrays in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
