PCODE
조회 수: 4 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Chirag Gupta
2011년 8월 9일
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
Fangjun Jiang
2011년 8월 9일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!