exp-mantissa part alone
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
x=4096; expx = large_exp(x) disp(expx);
how to get only the first part(mantissa part of the answer alone to find exponential and use it in program
0 comentarios
Respuesta aceptada
Walter Roberson
el 11 de Sept. de 2011
x=4096; expx = large_exp(x); mantissa = expx(1);
6 comentarios
Walter Roberson
el 12 de Sept. de 2011
As the first executable line of your program, put
format long g
After that, you will not get those silly 1.0e+007 * displays, and you will be able to see why the mantissa showed up as 1.3375 instead of 0.000 .
Más respuestas (1)
the cyclist
el 11 de Sept. de 2011
I am not sure what you mean by large_exp(). I assume it is a function you wrote, or maybe it is in a toolbox that I do not have. Regardless, I expect that you can get at what you need by using the floor() function.
Ver también
Categorías
Más información sobre Graphics Object Programming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!