Path: news.mathworks.com!not-for-mail
From: "Ben " <ben.cowley@helsinki.fi>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compiled Matlab fgets error
Date: Wed, 12 Sep 2012 14:48:09 +0000 (UTC)
Organization: Helsingin Yliopiston Observatorio
Lines: 33
Message-ID: <k2q7b9$rtg$1@newscl01ah.mathworks.com>
References: <k2o940$q1o$1@newscl01ah.mathworks.com> <k2oa8k$g25$1@speranza.aioe.org> <k2p4l7$qf6$1@newscl01ah.mathworks.com> <k2p97h$bh5$1@newscl01ah.mathworks.com> <k2q1f6$60t$1@speranza.aioe.org>
Reply-To: "Ben " <ben.cowley@helsinki.fi>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1347461289 28592 172.30.248.46 (12 Sep 2012 14:48:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 12 Sep 2012 14:48:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3269771
Xref: news.mathworks.com comp.soft-sys.matlab:778328

dpb <none@non.net> wrote in message <k2q1f6$60t$1@speranza.aioe.org>...
> On 9/12/2012 1:14 AM, Ben wrote:
> > Argh, I just realised my message above was in error - I was talking
> > about subdirectories but in the code I posted it had not even reached
> > the part where it explores subdirectories.
> > So the code is valid but scratch the bit about directories :)
> > So then I know the path is good, the file is there, and the code
> > executes file IO on other files from the same dir. I tried moving the
> > eeglab toolbox to the same folder as the code I am compiling, but didn't
> > help.
> 
> Well, the combination of the two posts has totally confused me -- your 
> original post says you have an invalid file handle problem w/ a compiled 
> code.
> 

Apologies for the confusion. The problem remains the same, much like the song - an invalid file handle with compiled code.
This occurs within the file reader script pop_biosig() from Eeglab, so that I cannot change the code itself.
Hopefully that is clearer?

> Now I'm at a loss as to what you meant by 'compiled' here -- you mean 
> the external package distributed as a (I presume) set of mex functions 
> or have you tried to compile the overall program and are trying to 
> execute that?
> 

I have compiled the program and am trying to execute. FYI I'm completely new to compiled Matlab.

> Clarify the situation, please...
> 
> Also, _PLEASE_ do not top-post--conversation follow hard to makes.
> 
> --