Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: dlmread error??
Date: Mon, 15 Jun 2009 02:41:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <h14cbt$ag6$1@fred.mathworks.com>
References: <h14bfp$gvv$1@fred.mathworks.com>
Reply-To: "Sadik " <sadik.hava@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1245033661 10758 172.30.248.37 (15 Jun 2009 02:41:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 15 Jun 2009 02:41:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:547407


Perhaps the function xlsread is going to work.

"Jack " <use.text.after.underscore.only_jcannon@csu.edu.au> wrote in message <h14bfp$gvv$1@fred.mathworks.com>...
> I am new to matlab and I have a csv file that I am trying to import; however, I am getting an error:
> >> M = dlmread('ADRY_Pre_Leg_WCONT_rms.csv', ' ', 2, 1);
> ??? Index exceeds matrix dimensions.
> Error in ==> dlmread at 150
> result = result{1};
> 
> Can anyone please explain this to me or describe how I should be importing this file?
> 
> The file has 92800 rows and 12 columns; each row is a different variable.
> 
> Any help is appreciated!
> Thanks!