Protect Matlab/Simulink Files

조회 수: 5 (최근 30일)
Brett
Brett 2022년 4월 18일
답변: Sulaymon Eshkabilov 2022년 4월 18일
I have a python GUI that I created which calls a matlab function, which runs a simulink model. I constructed it this way so that other users (who have all required licenses) can run the python GUI and get simulink results without having access to the matlab code. It makes it easy for users who don't know matlab to run it without being confused about the function inputs, etc. The matlab code is also proprietary, so I want to prevent users from being able to find and/or copy it.
Currently, I am storing the matlab and simulink files on a network drive that the user has access to, in a hidden folder. If I were them, I would probably be able to track down there files if I really wanted to. So it isn't ideal.
I can't compile the simulink model because I need to use variable time steps. It contains simscape blocks.
Can I password protect the matlab and simulink files? Prevent them from being copied? Can I store them on matlab online and run from there? Maybe only allow certain users to run it? Just wondering if anyone else has other solutions/suggestions.
Thanks

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 4월 18일
One option is creating p-code of m-files, e.g.:
>> pcode MYfile.m

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by