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

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

问题描述

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

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

推荐答案

如果打开"是指编辑 - 那么肯定不是.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.

如果打开"是指运行 - 那么肯定是的.引用手册:

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天全站免登陆