I'm trying to convert the text into binary and then i want to make the 4 bits chunks.
7 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (2 件)
参考
カテゴリ
Help Center および File Exchange で Model Compatibility についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!