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

 채택된 답변

Image Analyst
Image Analyst 2016년 10월 22일

0 개 추천

Use %f not %d

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

태그

질문:

2016년 10월 22일

댓글:

2016년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by