Convert cell array of syms to double
    9 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    yonatan s
 le 19 Oct 2020
  
    
    
    
    
    Commenté : yonatan s
 le 19 Oct 2020
            Hello, after running the following code (where f(1), f(2) are constants, and u is a vector), X ends up being a u-sized cell array where each cell is of class 'sym'. How do I convert X to double?
syms x positive
eqn = f(1)*x.^2+f(2)*x == u;
X = (arrayfun(@solve,eqn,'uniform',0));
Thanks.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Conversion Between Symbolic and Numeric 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!