MATLAB Answers

sfit decimals output only 4 sig figs

3 views (last 30 days)
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!

  0 Comments

Sign in to comment.

Accepted Answer

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

  0 Comments

Sign in to comment.

More Answers (0)

Tags


Translated by