Tags: compiled, compliled, containing, exe, file, files, input, interactive, matlab, mode, programming, resultingexecutable, run, user, whichneeds

Interactive mode for called *.exe file in compliled m files

On Programmer » Matlab

3,239 words with 3 Comments; publish: Mon, 19 May 2008 00:10:00 GMT; (20031.25, « »)

After I compiled my m file containing a *.exe file which

needs input from the user, when I run the resulting

executable file, I cannot input anything for the *.exe it

contains, the dos command window only displays information

and doesn't receive any input.

This problem doesn't happen when I run the m file directly

in the Matlab.

How can I make the command window interactive for the

compiled

executable file?

thanks in advance

sincerely,

heqing

All Comments

Leave a comment...

  • 3 Comments
    • "Heqing " <huanghe.matlab.todaysummary.com.engr.sc.edu> schrieb im Newsbeitrag

      news:fh7b3f$22a$1.matlab.todaysummary.com.fred.mathworks.com...

      > After I compiled my m file containing a *.exe file which

      > needs input from the user, when I run the resulting

      > executable file, I cannot input anything for the *.exe it

      > contains, the dos command window only displays information

      > and doesn't receive any input.

      > This problem doesn't happen when I run the m file directly

      > in the Matlab.

      > How can I make the command window interactive for the

      > compiled

      > executable file?

      > thanks in advance

      > sincerely,

      > heqing

      Hi heqing,

      which version of MATLAB are you using? It works fine

      for me (R2007b). Perhaps, if input does not work for

      you, may be you could use inputdlg instead?

      Titus

      #1; Mon, 19 May 2008 00:11:00 GMT
    • "Titus" <titus.edelhofer.matlab.todaysummary.com.mathworks.de> wrote in message

      <fh9q3d$358$1.matlab.todaysummary.com.fred.mathworks.com>...

      >

      > Hi heqing,

      > which version of MATLAB are you using? It works fine

      > for me (R2007b). Perhaps, if input does not work for

      > you, may be you could use inputdlg instead?

      > Titus

      Thank you very much for your reply. The version I'm using is

      Ver.7.0, quite old.

      the *.exe which needs on-screen input is obtained by

      compiling Fortran, it's not easy to include inputdlg in it.

      A simple possible way to do it may be to open another Dos

      command window that can be used for interactive mode. But I

      don't know how to do it.

      thanks,

      heqing

      >

      #2; Mon, 19 May 2008 00:12:00 GMT
    • This problem was solved now!

      Originally, I tried !, system or Dos (*.exe), all didn't

      work. The file was executed in the window opened the same

      time with my complile file. However, when I tried

      winopen(*.exe), it works, a separated dos window opened and

      it's interactive.

      thanks!

      "Heqing " <huanghe.matlab.todaysummary.com.engr.sc.edu> wrote in message

      <fh7b3f$22a$1.matlab.todaysummary.com.fred.mathworks.com>...

      > After I compiled my m file containing a *.exe file which

      > needs input from the user, when I run the resulting

      > executable file, I cannot input anything for the *.exe it

      > contains, the dos command window only displays information

      > and doesn't receive any input.

      > This problem doesn't happen when I run the m file directly

      > in the Matlab.

      > How can I make the command window interactive for the

      > compiled

      > executable file?

      > thanks in advance

      > sincerely,

      > heqing

      #3; Mon, 19 May 2008 00:13:00 GMT