Can I use standalone matlab .exe files without licencing problems?

21 views (last 30 days)
Hi;
Assume that I have a matlab code which uses image processing toolbox (imaq) and I do not have the licence for that toolbox. Can I create a standalone .exe file and run it on any computer I want without needing the licence?
Thanks.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jan 2016
You can use license() to 'test' whether you have access to a license and use alternate coding if you do not.
However, I gather that the license that is used at the time of execution is the license that the person compiling it had. The executables are stand-alone: they do not go fishing through all of the MATLAB licenses owned by the executor to try to find one that permits the operation: they rely upon what the person who compiled had access to.
So if you are compiling and you do not yourself have that toolbox, then the executable will not be allowed access to the toolbox. It might still be worth putting in the license test, though, as it would give flexibility for other people who might compile the code.

More Answers (1)

Image Analyst
Image Analyst on 30 Jan 2016
You cannot compile it into a standalone executable. In fact, since it uses IPT functions and you don't even have that toolbox, you can't even run the m-file program.
However if you find someone else in your company or organization who has both the compiler and IPT then they can compile it into a standalone executable. The Mathworks is okay with that as far as licensing goes. I deploy image processing standalone executables all the time to people in our company who have no version of MATLAB whatsoever installed. Sometimes I even compile for other people in our company who have MATLAB but don't have the compiler. It's perfectly legal and allowed.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!