0
$\begingroup$

here are my IIR coefficients:

CoefIIR=[1.630078934734 1.267893338385 1.112390120011]

and here are the result given to me by matlab commands:

CoefIIR =

1.6301    1.2679    1.1124

How can I keep the precision for data storage and during calculations?

$\endgroup$
4
  • 9
    $\begingroup$ The precision is kept. It is just the display values. Type format long to change the displayed precision. $\endgroup$
    – GKH
    Feb 17, 2020 at 8:56
  • 1
    $\begingroup$ you are right. I cannot unfortunately make your answer as the right one $\endgroup$
    – Yaakov
    Feb 17, 2020 at 10:14
  • 2
    $\begingroup$ It's ok, no worries. I am glad I helped. $\endgroup$
    – GKH
    Feb 17, 2020 at 10:57
  • 1
    $\begingroup$ @GKH: please copy your comment into an answer, below -- it certainly is a good answer, and should be recognized as such. $\endgroup$
    – TimWescott
    Feb 17, 2020 at 15:38

1 Answer 1

3
$\begingroup$

The precision is kept. It is just the display values that are truncated.

Type format long to change the displayed precision.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.