How to split numbers to A,B,C
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
How to split numbers to A,B,C , for 8 bits? example :
I generated : 10111001100000110011111 , (always 24 numbers,only 0,1) , command : x = randi([0 1],24,1)
and now i want to split these 24 nubers to A,B,C for 8 bits in every sequence (A,B,C). , I used command reshape(x,[8,3]) , but how to add "title" A,B,C?
Is here function/command ? i cant find it
Réponses (1)
KSSV
le 4 Déc 2018
Modifié(e) : KSSV
le 4 Déc 2018
x = randi([0 1],24,1) ;
A = reshape(x,[8,3]) ;
YOu can call A,B,C by A(:,1), A(:,2), A(:,3)
Voir également
Catégories
En savoir plus sur Call C from MATLAB 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!