sfit decimals output only 4 sig figs

1 Ansicht (letzte 30 Tage)
Benjamin
Benjamin am 20 Aug. 2019
Beantwortet: Walter Roberson am 20 Aug. 2019
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!

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by