help-octave
[Top][All Lists]
Advanced

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

Re: csv read problem


From: Doug Stewart
Subject: Re: csv read problem
Date: Thu, 18 Feb 2016 13:39:24 -0500



On Thu, Feb 18, 2016 at 12:57 PM, Mike Miller <address@hidden> wrote:
On Thu, Feb 18, 2016 at 12:38:30 -0500, Doug Stewart wrote:
> Looking at it with ghex  shows that there is a 00 between every good byte
> of data.
>
> 49 00 64 00 50 00 72 00 6F 00 76   etc.
>
> If one was to read it in byte by byte and save every second  byte to a new
> file , then I think it would work

Confirmed. I think this is a "best tool for the job" case. I would use
sed to clean up the file into a format appropriate for importing into
Octave.

  sed 's/[\x0\xd]//g;s/,/./g;s/;/,/g' file > fixed.csv

this works for me and then I can read it into octave with:
data="" 1,0); 

--
mike

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--
DASCertificate for 206392


reply via email to

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