how to convert cell to matrix ?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    pruth
      
 el 1 de Nov. de 2019
  
    
    
    
    
    Comentada: pruth
      
 el 1 de Nov. de 2019
            i have this cell x (20*1)  (i have attached). i just want convert this in to simple matrix and split the data whereever there is a space. 
so here i will get the 20*20 matrix !
i tried splitting the each string with single space in a loop but it seems like sometimes there are two spaces, sometimes 3 and sometimes only 1. i dont get any idea how to split the stiring and make a simple 20*20 matrix out of it !
 segments1 = regexp(x{1,1}{i,1},' ','split')
i hope you understand the question !
0 comentarios
Respuesta aceptada
Más respuestas (1)
Ver también
Categorías
				Más información sobre Loops and Conditional Statements 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!


