[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: : new to octave, confused about load(), dlmread et cetera
From: |
fork |
Subject: |
Re: : new to octave, confused about load(), dlmread et cetera |
Date: |
Wed, 1 Sep 2010 16:10:35 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Justin Cress <boywonder410 <at> gmail.com> writes:
>
>
(not the original poster, but an interested party in octave data handling, which
leaves a lot to be desired at the moment)
> Great code, why do you grab the first two lines? in case headers spill over?
dlmread snarfs everything unless you tell it where to start (the code below code
have used a parameter to tell it to start reading at the second line.
> Why do you remove zeros ?
Matlab's dlmread puts zero into every empty or unparseable field, so one has to
compensate for it. (Yes, this is UTTERLY LAME behavior, they should be NaN, but
for compatibility we follow it. str2double() might be useful in a loop that
reads lines, as it allows for subbing NaNs for empties.)
- : new to octave, confused about load(), dlmread et cetera, Roman.Griego, 2010/09/01
- Re: : new to octave, confused about load(), dlmread et cetera, Justin Cress, 2010/09/01
- Re: : new to octave, confused about load(), dlmread et cetera,
fork <=
- Re: : new to octave, confused about load(), dlmread et cetera, Jaroslav Hajek, 2010/09/01
- Re: : new to octave, confused about load(), dlmread et cetera, justin.cress, 2010/09/01