Bit Concatenate

14 visualizaciones (últimos 30 días)
dmfwlansejr
dmfwlansejr el 13 de Ag. de 2021
Comentada: SK woo el 30 de Dic. de 2021
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 comentario
SK woo
SK woo el 30 de Dic. de 2021
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'

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!