what is this symbol? looks empty but not.
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Yu Li
 el 3 de Nov. de 2018
  
    
    
    
    
    Respondida: Walter Roberson
      
      
 el 3 de Nov. de 2018
            I use command: [status,result] = system('arp -a') to get the IP address in my machine, then I want to organize these info into a cell format. but I found that, after I remove the empty cells, there are still some cells looks empty but not.
below is the test code:
    [status,result] = system('arp -a')
    test=regexp(result,' ','split');
    test=test(:);
    ept_sig=[];
sig=1;
for i=1:1:length(test)
   if isempty(test{i})
       ept_sig(sig)=i;
       sig=sig+1;
   end
end
test(ept_sig)=[];
there are some variables in the resulted 'test' that looks like empty, but not.
what is that, is there any way to remove them?
Thanks!
Yu
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 3 de Nov. de 2018
              test=regexp(result, '\s+','split');
In particular, you were dealing with newline and possibly carriage return as well.
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Symbolic Math Toolbox 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!

