Hello!
I know the that %.3f would mean a float number that shows 3 numbers after the dot, but I really don't understand the +09 part.
Thank you in advance

 採用された回答

DGM
DGM 2021 年 5 月 1 日

0 投票

%+09.3f
(+) -- flag means always display sign before number
0 -- add leading zero padding to full field width
9 -- field width (minimum number of characters to print)
3 -- precision (this means different things depending on the conversion type)
f -- conversion type (fixed-point)

2 件のコメント

Dora Imro
Dora Imro 2021 年 5 月 1 日
Thanks a lot!
Turlough Hughes
Turlough Hughes 2021 年 5 月 1 日
See also the following documentation.

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

その他の回答 (0 件)

カテゴリ

質問済み:

2021 年 5 月 1 日

コメント済み:

2021 年 5 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by