Effacer les filtres
Effacer les filtres

Matlab integer accuracy VS MS EXCEL

2 vues (au cours des 30 derniers jours)
ARS
ARS le 2 Juin 2012
Hi All,
I am exporting my time series data from EXCEL to MATLAB as time series objects (fints).
Now after exporting, the excel figures -0.353344471286182 becomes -0.3746 in MATLAB fints table.
If it is rounding then isn't it too much? Can this issue be avoided?
this is just one figure, same is happening to all numerical figures.
Any help will be highly appreciated.
Regards,
AMD.
  1 commentaire
Walter Roberson
Walter Roberson le 3 Juin 2012
I do not understand why your title refers to "integer accuracy" instead of to floating point accuracy?

Connectez-vous pour commenter.

Réponses (1)

the cyclist
the cyclist le 2 Juin 2012
I don't have the fints() function, because I don't have the Financial Toolbox. However, by default, core MATLAB displays 4 digits, even though it keeps about 15 digits (double precision) for calculation. See
>> doc format
for some details on that. I don't know to what extent that carries over to the fints() function.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by