Borrar filtros
Borrar filtros

how to split a number?

1 visualización (últimos 30 días)
Paromita Bhattacharjee
Paromita Bhattacharjee el 30 de Ag. de 2015
Comentada: Walter Roberson el 30 de Ag. de 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

Respuesta aceptada

Stephen23
Stephen23 el 30 de Ag. de 2015
>> x = 2.3*10^5;
>> y = 10^floor(log10(x))
y =
100000
>> z = x/y
z =
2.3
  1 comentario
Walter Roberson
Walter Roberson el 30 de Ag. de 2015
Watch out for negative numbers and watch out for 0.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Language Fundamentals en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by