[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: load hex data from a text file
From: |
Andrew Janke |
Subject: |
Re: load hex data from a text file |
Date: |
Fri, 25 Oct 2019 03:17:35 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 10/25/19 2:40 AM, parafux wrote:
> Hi,
>
> i use matlab and octave on Linux.
> I have a file test.txt with this content:
>
> 0xA 0xB
> 0xC 0xD
>
> I load the data in matlab with this command:
> x=load("test.txt")
>
> I get this result, seems that the programmer implemented a fridays 13th joke
>
>>> x
> x =
> 10 11
> 12 14
>
> I also try this load command in Octave, but get this error:
> octave:18> x=load("test.txt");
> error: load: failed to read matrix from file 'test.txt'
>
> I was hoping to get an easy wey to load that hex values from file into a
> variable.
>
> can anymody help?
Hi parafux,
Could you attach the actual "test.txt" file to a reply email so we can
examine it? There's a lot of ambiguities here, and it'd be easiest to
debug if we could examine the actual file.
Cheers,
Andrew