How do I add leading zeros to a number in Matlab

4 ビュー (過去 30 日間)
S
S 2011 年 5 月 14 日
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.

採用された回答

Walter Roberson
Walter Roberson 2011 年 5 月 14 日
  1 件のコメント
S
S 2011 年 5 月 14 日
Thank you,worked quite well:))

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by