Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: PLEASE help to extract data of text file into variables
Date: Wed, 15 Oct 2008 08:39:01 +0000 (UTC)
Organization: Pierburg GmbH
Lines: 6
Message-ID: <gd4a75$mk0$1@fred.mathworks.com>
References: <gd30v8$2un$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1224059941 23168 172.30.248.38 (15 Oct 2008 08:39:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 15 Oct 2008 08:39:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 872224
Xref: news.mathworks.com comp.soft-sys.matlab:495273


"Diego Zegarra" <diegozbb@gmail.com> wrote in message <gd30v8$2un$1@fred.mathworks.com>...
> All my files are different but have the same structure. In this case it is a 3 machines (m) 6 jobs (n) as seen in the first two lines. Then it comes a matrix of jobs x machines (6x3) and then m number of matrices of (nxn). So basically the file structure can be known from the first two lines. Every matrix is separated by a blank line. 

:-/
Regarding my typo...
Your description does not apply to your example. In the example, there are 6 6x6 matrices (n=6) at the end, not 3 (m=3). The latter code is suitable for files as in the example; you may have to make obvious changes to it.