One more thing, if I just run:
k= (textread("keydata.txt", "%d"))
# the above gives k = 32 51 0 0 0
Which means it is correctly translating the first 2 hex numbers and not the rest of them. Hmm. Why is that?
--- On Thu, 9/13/12, Jordi Gutiérrez Hermoso-2 [via Octave] <[hidden email]> wrote:
From: Jordi Gutiérrez Hermoso-2 [via Octave] <[hidden email]>
Subject: Re: Loading hex data
The load command is for reading files in Matlab or Octave format.
Instead try something like
x = hex2dec(textread("data.txt", "%s"));
HTH,
- Jordi G. H.
|