[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:36:24 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
justin.cress <boywonder410 <at> gmail.com> writes:
>
>
>
> Cool, but, what if the data includes entries that are legitimately zero...
> (female = 1 if female, 0 if male)
Then that data is lost. Not good, but conformant with Matlab. Workarounds
include subbing a weird number (-999) in the data for empties, str2double, etc.
> > 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.
> >
>
> Understood, but, why not just grab line one? That's where the variable
> names should be. The OP's code fget's the first two lines and puts them in
> arrays, i was just curious why.
Oh funny, I assumed his data was like mine, with a description and a
variablename line (2 total)... Don't know then. Maybe to see how wide it is or
how the numbers are formatted?
- : 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, 2010/09/01
- 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