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));

 Akzeptierte Antwort

Image Analyst
Image Analyst am 22 Okt. 2016

0 Stimmen

Use %f not %d

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by