Hello,
My MatLab code outputs this 1.3357e+03 and I think this can be converted to a number like 1335.7.
I would like the MatLab function that will help me convert it.
Thanks for your help.

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 30 日

0 投票

x=1.3357e+03;
out=sprintf('%.1f',x)

1 件のコメント

kyin gab
kyin gab 2012 年 11 月 30 日
Azzi, Matt, Walter Jurgen, thanks guys

サインインしてコメントする。

その他の回答 (2 件)

Jurgen
Jurgen 2012 年 11 月 30 日

0 投票

sprintf?
Walter Roberson
Walter Roberson 2012 年 11 月 30 日

0 投票

format long g

1 件のコメント

Matt Fig
Matt Fig 2012 年 11 月 30 日
Even
format short g
gets it.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

製品

質問済み:

2012 年 11 月 30 日

コメント済み:

2022 年 12 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by