PCODE

6 vues (au cours des 30 derniers jours)
somesh bandari
somesh bandari le 9 Août 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

Réponses (2)

Chirag Gupta
Chirag Gupta le 9 Août 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 le 9 Août 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().

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by