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

22 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2016-1-29
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.

更多回答(1 个)

Image Analyst
Image Analyst 2016-1-30
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.

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by