can I show the polynomial without using syms in this way that I intend to do it?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Erwin Avendaño
le 7 Nov 2017
Commenté : Erwin Avendaño
le 7 Nov 2017
what I intend to do is print the polynomial without variables and somehow I would like to add it in a textual way, that is, I do not know something like set (handles.edit9, get (handles.edit10, 'string') 'x') is an idea vague but can you do something like that?
0 commentaires
Réponse acceptée
Walter Roberson
le 7 Nov 2017
numeric_coefficients_in_descending_order_of_power = .... %row vector!
power_list = length(numeric_coefficients_in_descending_order_of_power)-1 : -1 : 0;
result = strjoin( sprintfc('%d * x^%d', [numeric_coefficients_in_descending_order_of_power; power_list].' ), ' + ');
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Number Theory 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!