How to hide code in live script files for others to not see?

조회 수: 48 (최근 30일)
Anilcan Taner
Anilcan Taner 2023년 1월 5일
답변: Walter Roberson 2023년 1월 5일
Let's say I have a live script file that contains codes, descriptions, charts, texts and pictures. But, I want this script to be designed in a way that others can only change inputs and do not see other codes going around this input.
Is there any way to hide codes is my question.
Hope I described it well.
Edit to question: What I mean by the "hide" is that when I distribute the copy of script others would not be able to see the code (I do not mean how we hide from the right section)

답변 (3개)

Walter Roberson
Walter Roberson 2023년 1월 5일
You can have the Livescript portion have the controls and the graphics, but hide everything else as functions in regular .m files that you pcode.

Mike Croucher
Mike Croucher 2023년 1월 5일
How you proceed depends on what you mean by 'hide'. You can make the code disappear by clicking on the third icon on the right as shown below. Live controls will still be visible but the code will not.
This is hidden for the purposes of presentation but, of course, a user could easily get the code back by clicking on the other two icons.

Walter Roberson
Walter Roberson 2023년 1월 5일
To be explicit: You cannot do that. The options for hiding source code only apply to m files. See my other answer for what you can do instead.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by