Bit Concatenate

3 ビュー (過去 30 日間)
dmfwlansejr
dmfwlansejr 2021 年 8 月 13 日
コメント済み: SK woo 2021 年 12 月 30 日
if r=[0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0];
then I wnat
r=0001001001001000 or '0001001001001000'
  1 件のコメント
SK woo
SK woo 2021 年 12 月 30 日
r = [0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,0];
%
two = 2.^(15:-1:0)';
out = dec2bin(r * two, 16)
out = '0001001001001000'

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!