nrg85
July 5th, 2012, 06:12 PM
Hi,
I need some help regarding the hex2dec() function in Octave.
I've a column vector with single characters and if I pass it to the hex2dec() it parses as it would be a row vector.
For example:
i = ["a"; "b"; 'c']; hex2dec(i)results in:
ans = 2748however if the array contains more characters per row it parses it correctly:
i = ["0a"; "0b"; '0c']; hex2dec(i)resulting in:
ans =
10
11
12The question is, is it possible to force the hex2dec() function to parse a column vector as a matrix?
Many thanks in advance!
I need some help regarding the hex2dec() function in Octave.
I've a column vector with single characters and if I pass it to the hex2dec() it parses as it would be a row vector.
For example:
i = ["a"; "b"; 'c']; hex2dec(i)results in:
ans = 2748however if the array contains more characters per row it parses it correctly:
i = ["0a"; "0b"; '0c']; hex2dec(i)resulting in:
ans =
10
11
12The question is, is it possible to force the hex2dec() function to parse a column vector as a matrix?
Many thanks in advance!