distinguishing exponential (e) from other characters with regexp
    7 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    sermet
      
 el 24 de Mayo de 2017
  
omega= 
      '-1.86265e-09</'
      '-1.86265e-09</'
      '-1.74623e-09</'
      '-1.74623e-09</'
      '-1.62981e-09</'
      '-1.62981e-09</'
      '-1.74623e-09</'
      '-1.62981e-09</'
      '-1.86265e-09</'
      '-1.62981e-09</'
      '-1.86265e-09</'
%11x1 cell
I run the below code to extract only numeric parts of rows;
omega= regexp(omega,'[+-]?\d+\.?\d*', 'match');
But it also remove "e". How can I modify above code to get e as a numeric part?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Characters and Strings 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!