【提问】如何将十进制转换二进制的char数字生成为double矩阵。
Afficher commentaires plus anciens
我想将十进制的数转化为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);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur 字符和字符串 dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!