Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail
From:  muhdzubair@gmail.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to read a particular line
Date: Sat, 07 Jul 2007 21:32:50 -0000
Organization: http://groups.google.com
Lines: 21
Message-ID: <1183843970.585935.265350@w3g2000hsg.googlegroups.com>
References: <1183832613.894876.43910@n60g2000hse.googlegroups.com>
NNTP-Posting-Host: 80.6.89.170
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1183843970 32246 127.0.0.1 (7 Jul 2007 21:32:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 7 Jul 2007 21:32:50 +0000 (UTC)
In-Reply-To: <ef5cbda.10@webcrossing.raydaftYaTP>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 MPWBSRV
Complaints-To: groups-abuse@google.com
Injection-Info: w3g2000hsg.googlegroups.com; posting-host=80.6.89.170;
Xref: news.mathworks.com comp.soft-sys.matlab:417789



On Jul 7, 10:17 pm, us <u...@neurol.unizh.ch> wrote:
> muhdzubair:
> <SNIP lousy procrastinating posting...
>
> > i used ur piece of code but it gives few errors which i cudnt
>
> remove...
>
> WHAT(!) are the <few errors>...
>
> us

Error is in the line:
 n=reshape(n,nc,[]).';
and the error is:
"Product of known dimensions, 12, not divisible into total number of
elements, 1".

I am using the following command:
n=textscan(fid,'%f','headerlines',hdr);  %where hdr=2