help-octave
[Top][All Lists]
Advanced

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

Re: Loading hex data


From: Jordi Gutiérrez Hermoso
Subject: Re: Loading hex data
Date: Thu, 13 Sep 2012 10:34:38 -0400

On 13 September 2012 02:40, ionavideo <address@hidden> wrote:
> I tried making a data.txt, a simple one-column file, like this:
> C2
> 27
> 4F
> E
>
> and in the main program wrote:
> dummy = load('data.txt')

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.


reply via email to

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