hi , my result show as following 1.3204e-05 , i need show it as numerical value

2 visualizzazioni (ultimi 30 giorni)
hi , my result show as following 1.3204e-05 , i need show it as numerical value
  2 Commenti
Stephen23
Stephen23 il 11 Ago 2016
Modificato: Stephen23 il 11 Ago 2016
@mohammed elmenshawy: most likely | 1.3204e-05| is already a numeric value, assuming that the function is not outputting a string or something like that. Read this to know why the output is numeric, regardless of how it is displayed:

Accedi per commentare.

Risposta accettata

dpb
dpb il 11 Ago 2016
1.3204e-05 is a numerical value, if you want a specific format other than default look at
doc format
to make the change global in the workspace/command window or use fprintf or num2str to display...
>> x=1.3204e-05;
>> num2str(x,'%.10f')
ans =
0.0000132040
>>

Più risposte (0)

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by