help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More info Re: Loading hex data


From: ionavideo
Subject: More info Re: Loading hex data
Date: Mon, 17 Sep 2012 07:50:39 -0700 (PDT)

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.




View this message in context: More info Re: Loading hex data
Sent from the Octave - General mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]