[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Plotting data from a file containing comments as first lines
From: |
Mark P. Esplin |
Subject: |
Re: Plotting data from a file containing comments as first lines |
Date: |
Tue, 8 Jun 2004 14:46:22 -0400 |
User-agent: |
KMail/1.5.4 |
Matlab has a function called dlmread that will do it. The function
dlmread
is also in octave-forge, however it doesn't have all the functionality of the
Matlab version. I sent in a patch to add functionality so that it would skip
over lines, but it didn't seem to have made it into CVS. I could send you my
version of dlmread.m if you would like.
Just now I looked at the files in cvs/octave-forge/main/io and there is
a
dlmread.cc that appears to have that functionality. However, I don't know
why it didn't get built.
-Mark Esplin
On Tuesday 08 June 2004 06:16, address@hidden wrote:
> Hi,
>
> my problem:
> I would like to plot the data contained in a file beginning with
> comments... The file looks like:
>
> blabla1
> blabla2
> dsfsdsdfd
> 1 3
> -5 6
> 0 8
> 1 8
>
> Of course it would be easy if there was no comments at the beginning, I
> would just load the data typing
> load data
> and then plot it with
> plot data
>
> Is there a way to tell Matlab (or Octave, because I work a lot with Octave)
> to ignore the first 3 or 4 lines ? There must be one, but I can t find
> it...
>
> Thanks !
> Vincent
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------