help-octave
[Top][All Lists]
Advanced

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

Re: More info Re: Loading hex data


From: Doug Stewart
Subject: Re: More info Re: Loading hex data
Date: Mon, 17 Sep 2012 10:53:25 -0400



On Mon, Sep 17, 2012 at 10:50 AM, ionavideo <address@hidden> wrote:
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.

_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave


as an experiment try removing the 0b and see if it loads the others


--
DAS

https://linuxcounter.net/user/206392.html

reply via email to

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