I'm trying to convert the text into binary and then i want to make the 4 bits chunks.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
But the problem is that how to make the total size at the output for example: 001010101010001110101110111010110101.
its mean that i have only 1 row and 36 columns.
but i can't do it.
please help me out!
clc;
close all;
clear alll;
% I'm trying to convert the Hello World into binary
message = ('Hello world');
A = dec2bin(message, 8); % Now to convert the charactors into 8 Bits using ASCI.
[r c]=size(A);
cc=struct([]);
A=convertCharsToStrings(A);
for j=1:1:r;
z=A(j,:);
cc=cat(2,cc,A(j,:));
end
disp(cc);
0 commentaires
Réponses (2)
Voir également
Catégories
En savoir plus sur Model Compatibility dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!