help-octave
[Top][All Lists]
Advanced

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

Re: csv read problem


From: Mike Miller
Subject: Re: csv read problem
Date: Thu, 18 Feb 2016 09:57:29 -0800
User-agent: Mutt/1.5.24 (2015-08-30)

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

-- 
mike



reply via email to

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