PCODE

19 views (last 30 days)
somesh bandari
somesh bandari on 9 Aug 2011
Hi there, I have a series of function (seperate m-files) that complete a project/task. I want to hide the code when I share it with others. I have an idea of PCODE and mcc in MATLAB, but by any chance is there a way where I can create just one exe file or a p-file instead of all the concerned m-files of the project.
Regards

Answers (2)

Chirag Gupta
Chirag Gupta on 9 Aug 2011
Depends on what you want? Pcode functionality is built in MATLAB whereas mcc uses the MATLAB Compiler product.
At the same time, to run pcoded files, the user must also have MATLAB installed whereas if you are using mcc to create an executable then the user can run your application without having MATLAB installed.
If you are distributing your code to users that already have MATLAB installed, pcode would be better!

Fangjun Jiang
Fangjun Jiang on 9 Aug 2011
Using pcode(), you will get many .p files, maybe as many as your .m file. Using mcc(), you might be able to get one .exe file but you still need to provide many other supporting files. I would recommend just using pcode().

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!