Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to run .exe file from matlab
Replies: 8   Last Post: Jan 11, 2013 10:03 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Engin Uzunel

Posts: 7
Registered: 10/14/07
Re: How to run .exe file from matlab
Posted: Jan 11, 2013 3:04 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Even the exe of a simple ''hello world'' fortran code does not work using the matlab ''system'' command on a 64 bit machine.


"Engin Uzunel" <uzun_el@yahoo.com> wrote in message <kcmntk$lq5$1@newscl01ah.mathworks.com>...
> What I mean by "does not work" is that
> ''output_val'' is empty (zero by zero). That means that the
> system ('test.exe') is not working.
> The same code was working when the fortran code was compiled on a 32 bit machine and its exe is called on 32 bit matlab installed on that machine.
>
> "Steven_Lord" <slord@mathworks.com> wrote in message <kcmijq$114$1@newscl01ah.mathworks.com>...

> >
> >
> > "E U" <uzun_el@yahoo.com> wrote in message
> > news:kclf4t$243$1@newscl01ah.mathworks.com...

> > > I have similar problem. I have a simple fortran code (test.exe) which
> > > takes exponential of a number. I want to run this code several times from
> > > matlab as follows: open an input.dat file, write a number into it, call
> > > test.exe and then write the output to output.dat file.
> > >
> > > The associated matlab code is as follows:

> >
> > *snip*
> >

> > > When I compile the fortran code on a 32 bit machine and then run the above
> > > matlab code on 32 bit matlab installed on 32 bit machine it works.
> > > However, if I compile the fortran code on a 64 bit machine and then run
> > > the above matlab code on 64 bit matlab installed on 64 bit machine it does
> > > not work! What can be the reason?

> >
> > Define "does not work" -- does it throw an error? Does it issue a warning?
> > Does it give you a different answer than you expect? Does it crash MATLAB or
> > your machine?
> >
> > Post that information to the group and someone may be able to offer a
> > suggestion; determining the cause of this problem may require posting a
> > SMALL section of your Fortran code as well, but let's start with the answer
> > to the question above.
> >
> > --
> > Steve Lord
> > slord@mathworks.com
> > To contact Technical Support use the Contact Us link on
> > http://www.mathworks.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.