convertting from char or double to hex ?
5 ビュー (過去 30 日間)
古いコメントを表示
Hi, i have a vector which is zeros and ones say A=[1 0 1 0 0 0 1 0] its type is double and i want to convert it to hexadecimal representation i,e the result would be : A2
0 件のコメント
採用された回答
Walter Roberson
2013 年 4 月 3 日
hextable = '0123456789ABCD';
hextable( A(1:4:end) * 8 + A(2:4:end) * 4 + A(3:4:end) * 2 + A(4:4:end) + 1 )
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!