How to Search Blank Line ?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
Hi- Everyone
I use 'isempty' to find an empty line.
But there is a problem
The left Side File, detect Line 4
The right file is undetectable.  'Isempty' can not be detected if there is a space
Is there any way to detect both cases?
(left file)                (right file)
              
0 comentarios
Respuestas (1)
  Walter Roberson
      
      
 el 29 de Mzo. de 2023
        Assuming a cell array
line_is_blank = cellfun(@(S)isempty(strtrim(S)), YourCellArray)
0 comentarios
Ver también
Categorías
				Más información sobre Entering Commands en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!