필터 지우기
필터 지우기

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

채택된 답변

Walter Roberson
Walter Roberson 2015년 9월 30일
char(sscanf(con, '%2x'))
provided that con is an even length.
  댓글 수: 4

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by