sfit decimals output only 4 sig figs

1 次查看(过去 30 天)
I have a code that fits coefficients of a polynomial to data. I can access these polynomial coefifcients that are fit through a variable that appears to be a 1x1 sfit. How do I display more decimals? Currently it just shows 4 sig figs. I tried format long but that did not do anything.
Any help would be appreciated!

采纳的回答

Walter Roberson
Walter Roberson 2019-8-20
coeffs = coefvalues(Your_sfit_object);
num2str(coeffs, '%.15g')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by