【提问】如何将十进制转换二进制的char数字生成为double矩阵。
古いコメントを表示
我想将十进制的数转化为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);
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で 字符和字符串 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!