Which is better?converting hexadecimal to string directly or first converting hexa to decimal and then from decimal to string?

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

 채택된 답변

char(sscanf(con, '%2x'))
provided that con is an even length.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Characters and Strings에 대해 자세히 알아보기

질문:

2015년 9월 30일

댓글:

2015년 9월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by