A simple string to Hexadecimal value
176 views (last 30 days)
sai charan bandi on 18 Jun 2015
Hi everyone I am struggling with a simple problem. I want to convert simple string 'hello' to its hexvalue (68656c6c6f). I can use dec2hex converter, but I am getting a matrix
I tried using mat2str command which produces ['68';'65';'6C';'6C';'6F']
but I want to finally produce a simple string '68656c6c6f', when I give input as 'hello' string.
Is it possible to do that in matlab??