Path: news.mathworks.com!not-for-mail
From: "burcu " <burcu102@hotmail.com>
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$1@fred.mathworks.com>
References: <hb6otr$oq4$1@fred.mathworks.com> <hb9c01$32e$1@fred.mathworks.com> <hbn2eo$p1$1@fred.mathworks.com> <hbp3cn$n2i$1@fred.mathworks.com> <hbs8m5$86$1@fred.mathworks.com> <hbsa1m$rbd$1@fred.mathworks.com>
Reply-To: "burcu " <burcu102@hotmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256304859 25296 172.30.248.38 (23 Oct 2009 13:34:19 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 23 Oct 2009 13:34:19 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1870888
Xref: news.mathworks.com 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:

fid=fopen('kddcup.data_10_percent.txt');
trial=textscan(fid, %f,%s...(variable types for 42 colums), 19);
fclose(fid);

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. 

Burcu

-------------------

> 
> 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