PCODE
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (2)
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!
0 Comments
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().
0 Comments
See Also
Categories
Find more on Startup and Shutdown 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!