want to convert vector to cell
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    rishika yadav
 il 27 Lug 2022
  
    
    
    
    
    Risposto: David Hill
      
      
 il 27 Lug 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 Commenti
Risposta accettata
  David Hill
      
      
 il 27 Lug 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 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Data Types in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

