Which is better?converting hexadecimal to string directly or first converting hexa to decimal and then from decimal to string?
1 回表示 (過去 30 日間)
古いコメントを表示
i have a variable containing hex value..eg:con=63727970746F,now it should be converted to string..How do i do that? Please note that i directly can't take hex value in my code since it gets generated dynamically.. i have to use the variable only!!Please help me.
THANK You
0 件のコメント
採用された回答
Walter Roberson
2015 年 9 月 30 日
char(sscanf(con, '%2x'))
provided that con is an even length.
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!