help-octave
[Top][All Lists]
Advanced

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

Re: How to read / import specific data from a txt file


From: Juan Pablo Carbajal
Subject: Re: How to read / import specific data from a txt file
Date: Tue, 13 Aug 2019 00:05:33 +0200

Hi Danielo,

Have you tried commenting out (with #) the header lines and just
loading into Octave?

load myfile.txt

If that works then you just need a short script (maybe using sed) to
comment all your files automatically.

If that doesn't work because your data is not numeric only, you can
try the functions dlmread, or more flexible, csv2cell from the IO
package (pkg install -forge io; pkg load io).
If Excel can load your data, then csv2cell can also do it.

Cheers



reply via email to

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