Format long in Msgbox

1 view (last 30 days)
Pedro Pires
Pedro Pires on 22 Oct 2016
Commented: Pedro Pires on 22 Oct 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));

Accepted Answer

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

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!