help-octave
[Top][All Lists]
Advanced

[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?







reply via email to

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