I'm trying to convert the text into binary and then i want to make the 4 bits chunks.
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Ver también
Categorías
Más información sobre Model Compatibility en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!