Format long in Msgbox

1 visualización (últimos 30 días)
Pedro Pires
Pedro Pires el 22 de Oct. de 2016
Comentada: Pedro Pires el 22 de Oct. de 2016
Hi everyone, I'm trying to get a value in a msgbox to become format long but it doesn't work, only shows in scientific form. I used the format long in the beginning of the code and tried using num2string but was unsuccessfull in both cases. Does anyone know a way to solve this problem.
Thank you
AB_loxo=deltafiAB/cos(v);
msgbox(sprintf('%d',AB_loxo));

Respuesta aceptada

Image Analyst
Image Analyst el 22 de Oct. de 2016
Use %f not %d
  1 comentario
Pedro Pires
Pedro Pires el 22 de Oct. de 2016
You're right. Thanks for the help

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming 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