sfit decimals output only 4 sig figs

조회 수: 1 (최근 30일)
Benjamin
Benjamin 2019년 8월 20일
답변: Walter Roberson 2019년 8월 20일
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에서 Polynomials에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by