Format long in Msgbox

9 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by