how to split a number?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Paromita Bhattacharjee
le 30 Août 2015
Commenté : Walter Roberson
le 30 Août 2015
I have a number a=2.3*10^5, I want to separate 2.3 and 10^5 as two different data value. How do I do it? please help
0 commentaires
Réponse acceptée
Stephen23
le 30 Août 2015
>> x = 2.3*10^5;
>> y = 10^floor(log10(x))
y =
100000
>> z = x/y
z =
2.3
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur NaNs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!