want to convert vector to cell
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    rishika yadav
 el 27 de Jul. de 2022
  
    
    
    
    
    Respondida: David Hill
      
      
 el 27 de Jul. de 2022
            i am dealing with a colum vectror A= [1 2 2 3 2 ]
need to convert this vector in a cell form with element seprated by commas A ={ '1','2','2','3','2'}
0 comentarios
Respuesta aceptada
  David Hill
      
      
 el 27 de Jul. de 2022
        A= [1 2 2 3 2 ]
B=mat2cell(num2str(A'),ones(1,length(A)),1)'
Which is the same as:
C ={ '1','2','2','3','2'}
0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Data Types 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!

