Effacer les filtres
Effacer les filtres

Convert an array into floating numbers

13 vues (au cours des 30 derniers jours)
Reyasudin
Reyasudin le 11 Juin 2013
Hello,
I have an dataset(49 by 9). I want to convert an array(49 by 1) in the dataset from exponential notation (e.g 1.003 e +03) into floating numbers.

Réponses (1)

Matt J
Matt J le 11 Juin 2013
Modifié(e) : Matt J le 11 Juin 2013
Use STR2DOUBLE or STR2NUM.
  10 commentaires
Matt J
Matt J le 11 Juin 2013
Modifié(e) : Matt J le 11 Juin 2013
When I open the dataset
You mean when you open it in the Variable Editor? Under the "View" menu, and within that under the "Numeric Array Format" menu there are options to change the way numbers are displayed (short, long, etc...). It is very similar to the FORMAT command.
Reyasudin
Reyasudin le 11 Juin 2013
yes. that what I am asking..but there is no option to display the whole number..all the available option( short, long.....) will still show the number with exponential. I want it to display like shortg or longg number format. Maybe I cannot change it?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Data Type Conversion 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