black box function export in MATLAB

6 ビュー (過去 30 日間)
Davide
Davide 2014 年 12 月 18 日
回答済み: sanya gode 2019 年 10 月 29 日
Is it possible to export a function in MATLAB in such a way that it is possible to execute that function, but do not read its source code?
I would like to distribute a MATLAB application to the students while keeping a functionality as a black-box. So they can execute a program and see the results. Then, they should re-implement that black-box functionality, without being able to read the solution from the distributed application.

採用された回答

Geoff Hayes
Geoff Hayes 2014 年 12 月 20 日
Davide - consider using pcode which obfuscates the code in fun.m and produces a file called fun.p You could then distribute the p-file to your students who could execute it.
As per the note in the link, the pcode function obfuscates your .m files, it does not encrypt them. While the content in a .p file is difficult to understand, it should not be considered secure. It is not recommended that you P-code files to protect your intellectual property.

その他の回答 (1 件)

sanya gode
sanya gode 2019 年 10 月 29 日
Hello,
I am working on Equivalent Circuit Modeling for estimating the battery parametrs. I read in MAthworks documentation that the model can be Blackboxed for sharing with certain customers so that they can modify it according to the application for which they are using the battery without knowing the internal parameters. I read that once the model is created we need to generate the code and than we have create a new simulink model based on the generated code.
Can you please elaborate on how exactly do we need to blackbox the model based on the generated code ?
Your answers will be very helpful and appreciated.
Thanks in advance.

カテゴリ

Help Center および File ExchangePropulsion and Power Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by