Format long in Msgbox

조회 수: 1 (최근 30일)
Pedro Pires
Pedro Pires 2016년 10월 22일
댓글: Pedro Pires 2016년 10월 22일
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일
Use %f not %d
  댓글 수: 1
Pedro Pires
Pedro Pires 2016년 10월 22일
You're right. Thanks for the help

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by