How can I remove empty arrays of cell
    4 views (last 30 days)
  
       Show older comments
    
    Farshid Daryabor
 on 16 Apr 2020
  
    
    
    
    
    Commented: Stephen23
      
      
 on 16 Apr 2020
            please find attached file, how can I remove empty row of cell arrays. Thanks in advance,
2 Comments
Accepted Answer
  Ameer Hamza
      
      
 on 16 Apr 2020
        Run this
idx = cellfun(@(x) isempty(x), time);
time(idx) = [];
2 Comments
  Stephen23
      
      
 on 16 Apr 2020
				No need for an anonymous function:
idx = cellfun(@isempty, time);
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!

