Which is better?converting hexadecimal to string directly or first converting hexa to decimal and then from decimal to string?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Meghashree G
le 30 Sep 2015
Commenté : Walter Roberson
le 30 Sep 2015
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 commentaires
Réponse acceptée
Walter Roberson
le 30 Sep 2015
char(sscanf(con, '%2x'))
provided that con is an even length.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!