cell2mat simple manipulation question
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Hi, if x={'000','101.5'}; x2=cell2mat(x)% which is =000101.5
How can I get x2=[000 , 101.5]?
0 commentaires
Réponse acceptée
  Sean de Wolski
      
      
 le 25 Juil 2012
        How about:
x={'000','101.5'}; 
x2=str2double(x)
or:
x3 = cellfun(@str2double,x)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Data Type Conversion dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

