Path: news.mathworks.com!not-for-mail
From: "Jerry " <mricad@yahoo.no000spppam.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MEX FORTRAN -- please help!
Date: Thu, 25 Oct 2007 15:18:12 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 34
Message-ID: <ffqc3k$30i$1@fred.mathworks.com>
References: <ffoi49$3b1$1@fred.mathworks.com> <omi0i39fed81mrk41df98pcpib7mcvlpcr@4ax.com> <i3k0i3hbk93qlos90pl832289oq1t0nd1u@4ax.com>
Reply-To: "Jerry " <mricad@yahoo.no000spppam.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1193325492 3090 172.30.248.35 (25 Oct 2007 15:18:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 25 Oct 2007 15:18:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 544673
Xref: news.mathworks.com comp.soft-sys.matlab:434614



James Tursa <aclassyguywithaknotac@hotmail.com> wrote in
message <i3k0i3hbk93qlos90pl832289oq1t0nd1u@4ax.com>...
> 
> P.S.  The %VAL stuff is old school F77 style code. If you
have a F95
> compiler you can write much cleaner code by using
allocatable Fortran
> variables to set the size dynamically at run time
depending on the
> value of the input max. You may pay a penalty in this
case, however,
> by having to copy the data into the mxArray after it is
generated, an
> extra step that you may not have needed by using the %VAL
construct.
> 
> James Tursa
> 
Thanks very much, Dr. Tursa, and for your reply to my other
post. My code is still too messy to post here so I tried to
figure out the problem with this simple example instead.
Your code works very well! I must be very careful with the
communication between Matlab and Fortran. I'll be serious on
my own code now -- let's see! -- I promise to share all my
experience with everyone here if it finally works well.

what's the email of Matlab support? I tried to run my Matlab
under gdb but got a license problem. When I run
linux> matlab -Dgdb
I had NO license problem; then when I run
<gdb> run -nojvm
I got a license error!

Thanks again for your help.