From: "burcu " <>
Newsgroups: comp.soft-sys.matlab
Subject: reading alphanumeric data
Date: Fri, 23 Oct 2009 13:34:19 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <hbsbcr$omg$>
References: <hb6otr$oq4$> <hb9c01$32e$> <hbn2eo$p1$> <hbp3cn$n2i$> <hbs8m5$86$> <hbsa1m$rbd$>
Reply-To: "burcu " <>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1256304859 25296 (23 Oct 2009 13:34:19 GMT)
NNTP-Posting-Date: Fri, 23 Oct 2009 13:34:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1870888
Xref: comp.soft-sys.matlab:579592

Actually i dont need to extract any specific partition. I need to load this dataset to matlab and use it for neural network training. I've saved it as txt file and i have a command like:

trial=textscan(fid, %f,%s...(variable types for 42 colums), 19);

I need to use it in such kind of command:

P=trial(1:30, 1:2);
But trial is a 1x42 matrix and i get a dimension error.

I need to get a 19x42 matrix with textscan command. 



> It's not clear what information (string & number, only number) to extract from your file(or single array)?
> It seems that your file have same structure therefore regexp would be appropriate for extracting data.
>  Branko