【提问】如何将十进制转换二进制的char数字生成为double矩阵。
Ältere Kommentare anzeigen
我想将十进制的数转化为40位的二进制数,并且将二进制数生成1x40 double 的矩阵
x = 3.6958e+11
x_bin_char = dec2bin(x,40); %十转2 40位
x_bin_cell = regexp(x_bin_char,'\d*\.?\d*','match');
x_bin = cell2mat(x_bin_cell);
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu 字符和字符串 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!