How do I add leading zeros to a number in Matlab
4 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
I am writing a piece of programme in VEE Pro which can accept MATLAB commands. This programme creates numbers from 1 to 32. Then they are converted to their binary equivalent. what I want is all of those equivalents appear in 6 digits, for example if 32 is 100000 I want 1 as 000001 not 1. Is there any command in MATLAB which does this job? then I can call it into my own progr. I appreciate your help:)
S.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!