Path: news.mathworks.com!not-for-mail
From: "Branko " <bogunovic@mbss.org>
Newsgroups: comp.soft-sys.matlab
Subject: reading alphanumeric data
Date: Fri, 23 Oct 2009 13:11:18 +0000 (UTC)
Organization: National Institute of Biology
Lines: 40
Message-ID: <hbsa1m$rbd$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>
Reply-To: "Branko " <bogunovic@mbss.org>
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 1256303478 28013 172.30.248.38 (23 Oct 2009 13:11:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 23 Oct 2009 13:11:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 237386
Xref: news.mathworks.com comp.soft-sys.matlab:579585


"burcu " <burcu102@hotmail.com> wrote in message <hbs8m5$86$1@fred.mathworks.com>...
> Hi Branko,
> 
> My dataset is kkd'99 dataset. You can find the details below:
> http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html
> I'm using 10% percentages of dataset( kddcup.data_10_percent.gz for training)
> I'm trying to open it with classical textscan codes, defining the variable types, %s, %f etc. 
> But the output only includes the first line. I've also added N, row number to data from the file, using the format but no way. 
> 
> Thanks for your help
> Burcu
>  
> 
> 
> "Branko " <bogunovic@mbss.org> wrote in message <hbp3cn$n2i$1@fred.mathworks.com>...
> > "burcu " <burcu102@hotmail.com> wrote in message <hbn2eo$p1$1@fred.mathworks.com>...
> > > Hi Guys,
> > > 
> > > I'm stucked in a similar situation. My data is something like:
> > > 
> > > 0,udp,private,SF,105,146,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1
> > > 
> > > It's a huge dataset of 42 columns and thousands of rows. I'm testing the command with 19 rows and 42 columns of dataset. Than i'll use this data at neral network training. 
> > > Anyway, as i can understand as an output of textscan command i'm always getting 1X42 array. I want to merge this to a 19x42 matrix. It seems cat command could work on my issue but i couldnt understand it's syntax. Can you please advice how can i solve my issue on that?
> > > 
> > > Thanks!
> > > Burcu
> > > 
> > 
> > > Anyway, as i can understand as an output of textscan command i'm always getting 1X42 array.
> > 
> > Not necessary, depands how's your data structured and than apply textscan (regexp) to your data. If you provide some additional information(code, data ), we might help you.
> > 
> > Branko 

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