Effacer les filtres
Effacer les filtres

Bit Concatenate

5 vues (au cours des 30 derniers jours)
dmfwlansejr
dmfwlansejr le 13 Août 2021
Commenté : SK woo le 30 Déc 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 commentaire
SK woo
SK woo le 30 Déc 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'

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!