How to change integer format
3 ビュー (過去 30 日間)
古いコメントを表示
how to make the double value format... like 02 instead of 2 ?
0 件のコメント
採用された回答
Mohammad Abouali
2016 年 12 月 29 日
編集済み: Mohammad Abouali
2016 年 12 月 29 日
fprintf('%0.2d\n',2)
02
fprintf('%0.2d\n',3)
03
fprintf('%0.4d\n',3)
0003
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!