vickyuet
Member level 2
Upon converting an input array into hex using Hex_LEN_INPUT = dec2hex(LEN_INPUT).My output appears as ...
out =
0e68
1b59
2927
>> whos out
Name Size Bytes Class Attributes
out 3x4 24 char
But I need my output to be as row vector like ...
out =[0e68 1b59 2927]
>> whos out
Name Size Class Attributes
out 1x18 char
I had achieved it using
for i=1:3
temp = Hex_LEN_INPUT(i,1:4)
a = [a ' ' temp]
end
But that does not fancy me at all....any better way to do it using built in function or better routine...Remember,each entries in out is hexadecimal representation of a decimal input number . :?:
Regards
out =
0e68
1b59
2927
>> whos out
Name Size Bytes Class Attributes
out 3x4 24 char
But I need my output to be as row vector like ...
out =[0e68 1b59 2927]
>> whos out
Name Size Class Attributes
out 1x18 char
I had achieved it using
for i=1:3
temp = Hex_LEN_INPUT(i,1:4)
a = [a ' ' temp]
end
But that does not fancy me at all....any better way to do it using built in function or better routine...Remember,each entries in out is hexadecimal representation of a decimal input number . :?:
Regards