有没有办法在MATLAB中查看pcode文件(.p)的源代码? [英] Is there a way to see the source of a pcode file (.p) in MATLAB?

查看:975
本文介绍了有没有办法在MATLAB中查看pcode文件(.p)的源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在MATLAB中打开pco​​de文件(.p)?

Is there a way to open a pcode file (.p) in MATLAB?

推荐答案

如果打开"是指 edit -当然不是. pcode中的"p"表示受保护"-其主要设计目标是在保护其源代码的同时部署功能组件.

If by 'open' you mean edit - then certainly not. 'p' in pcode is for 'protected' - its main design goal is deploying a functional component while protecting its source.

如果打开"是指 run -那么肯定可以. 引用手册:

If by 'open' you mean run - then certainly yes. Quoting the manual:

您调用生成的P代码文件的方式与调用生成它的MATLAB .m源文件的方式相同.例如,要调用文件myfun.p,请输入

You invoke the resulting P-code file in the same way you invoke the MATLAB .m source file from which it was derived. For example, to invoke file myfun.p, type

[out,out2,...] = myfun(in1,in2,...);

[out, out2, ...] = myfun(in1, in2, ...);

这篇关于有没有办法在MATLAB中查看pcode文件(.p)的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆