From: <HIDDEN>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to read a particular line
Message-ID: <ef5cbda.12@webcrossing.raydaftYaTP>
Date: Sat, 7 Jul 2007 17:46:52 -0400
References: <1183835610.503422.146760@22g2000hsm.googlegroups.com> <ef5cbda.8@webcrossing.raydaftYaTP> <1183842074.669395.184660@c77g2000hse.googlegroups.com> <ef5cbda.10@webcrossing.raydaftYaTP> <1183843970.585935.265350@w3g2000hsg.googlegroups.com>
Lines: 18
NNTP-Posting-Host: 84.226.122.46
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:417791



muhdzubair:
<SNIP a bit stubborn...

> Error is in the line:
> n=reshape(n,nc,[]).';
> "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

note: i did NOT use <textscan>, i used <textread>...
please, try the snippet i showed you <as is> with your file
name...
then: report CSSM this

     whos n % if(f) you still get the error...

us