Jan Verner
Jan Verner

Reputation: 153

Matlab script build compilation doesn't start

I pray you have a good day. :-)

After two months I finally finished my "program" in MatLab. It computes recumbent bike's strain ans deformation analyticaly. But it's in form of a script.

When I start my

Start.m

Matlab command window will show me menu:

I choose from options and input 1 / 2 numbers per question.

Then it will do the computation with results:

I want it to be executable in any machine without MatLab so I start the

 deploytool ~ command

where I choose

Then I pick up my Start.m file and press Built

The full Built window log is like this:

I even putted there MCR installer and installed it, but when I start my .exe file, my computer "works for a while" ans in task manager I have Lehokolo.exe (using system resources for 20% CPU), but after aprox 30seconds, it will calm down and nothing happens...

MCR installs: Matlab Compiler Runtime 8.0

and before that it installs Visual C++ (64bit)

I tried it wih my frieds notebook but it won't work either. (Installed MCR + tried start my program)

My thoughts:

I tried it on another machine with Matlab 2012b too and with the same result. 40seconds of "work" and then nothing.

Thanks for any response.

Upvotes: 1

Views: 525

Answers (1)

user2271770
user2271770

Reputation:

I think you should chose "Standalone Application", not "Windows Standalone Application" in your project type if you want to build a CLI app. This may give you further hints.

Later edit: Don't worry, even if the programs starts in CLI, it will be able to create figures, plots and so on. The only drawback is that it will run "all the time" (its execution is not natively event-driven as an application launched within a GUI).

Upvotes: 2

Related Questions