|
From: | Doug Stewart |
Subject: | Re: load file, skip comment lines |
Date: | Thu, 25 Jan 2007 19:20:50 -0500 |
User-agent: | Thunderbird 1.5.0.9 (Windows/20061207) |
the_verge wrote:
I'm using the load(filename) command to load some USGS data. What I want toknow is, how do I make it skip the leading comment lines in the data file? Specifically, the syntax I am using is:x = load(filename); A = x(:,1); B = x(:,2); C = x(:,3); etc. So if the first several lines are comment lines, how can I tell it to ignore those lines before beginning to load data? Is there a better way to do that? Thanks, Vergil
I usually edit the file first and delete those lines. Doug
[Prev in Thread] | Current Thread | [Next in Thread] |