can I show the polynomial without using syms in this way that I intend to do it?

1 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2017-11-7
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].' ), ' + ');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Number Theory 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by