Matlab P文件——加快Matlab程序,保护你的算法
来源:互联网 发布:倒排索引java 源代码 编辑:程序博客网 时间:2024/06/06 02:39
- P文件是对应M文件的一种预解析版本(preparsed version)。因为当你第一次执行M文件时,Matlab需要将其解析(parse)一次(第一次执行后的已解析内容会放入内存作第二次执行时使用,即第二次执行时无需再解析),这无形中增加了执行时间。所以我们就预先作解释,那么以后再使用该M文件时,便会直接执行对应的已解析版本,即P文件。但又因为Matlab的解析速度非常快,一般不用自己作预解析。只有当一些程序要调用到非常多的M文件时,如GUI应用程序时,才会作预解析,以增加以后的调用速度。
- P文件可以用来作保密代码之用,如果你给别人一个M文件,别人可以打开来看到你所有的代码和算法。如果你的代码不想被别人看到,那可以给他P文件。
- pcode函数也可以应用在M函数文件。
Matlab命令:pcode
pcode fun
pcode *.m
pcode fun1 fun2 ...
pcode... -inplace
Description
pcode fun obfuscates (i.e., shrouds) M-file fun.m for the purpose of protecting its proprietary source code. The encrypted M-code is written to P-file fun.pin the current directory. The original M-file can be anywhere on the search path.
If the input file resides within a package and/or class directory, then the same package and class directories are applied to the output file. See example 2, below.
pcode *.m creates P-files for all the M-files in the current directory.
pcode fun1 fun2 ... creates P-files for the listed functions.
pcode... -inplace creates P-files in the same directory as the M-files. An error occurs if the files cannot be created.
- Matlab P文件——加快Matlab程序,保护你的算法
- Matlab P文件——加快Matlab程序,保护你的算法(z)
- 如何拯救你——我的IE
- 犯错的重要性——比尔.盖茨
- 脱机的P2V工具——Disk2vhd
- 如何意识到问题的存在——读《你的灯还亮着吗》
- 加快Matlab程序编程效率的建议
- 加快Matlab程序编程效率的建议
- RHEL 5基础篇—文件和目录的管理
- Matlab中的P文件
- matlab .p文件
- MATLAB中的p文件
- 收到的礼物——微软蓝牙无线鼠标5000
- 毕业后的档案问题——详细流程
- CamStudio——优秀免费的屏幕录像软件
- Android调试的必杀技——反汇编
- 那就是我——大名鼎鼎的C++缪博士
- cflow——生成C 语言流程图的工具
- Android源码编译整理总结
- CV、PR方向的资源
- 用MATLAB优化工具箱解线性规划
- Matlab优化工具箱学习
- Linux进程控制
- Matlab P文件——加快Matlab程序,保护你的算法
- 电烙铁的使用
- 实现HTTP断点续传下载工具(附源代码)
- 遗传算法初接触
- 边缘检测
- video4linux(v4l)使用摄像头的实例基础教程与体会
- 超酷的图像效果
- c#图像处理基础
- TortoiseSVN