Difference of ProtectedModels for Linux and Windows
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Philipp Krause
am 23 Jan. 2024
Beantwortet: Angelo Yeo
am 24 Jan. 2024
I want to use a protected model on linux and windows machines but this is not possible. So i need to generate the protected model for every operating system seperately.
Now I wonder why there is this operating system dependeny for protected models. How differ the generated protected models for linux and windows with respect to code generation? Do i have to expect different generated code for each operating system?
Additionally, is a protected model already keeping its generated code inside, so the code will not be generated again during a following build?
0 Kommentare
Akzeptierte Antwort
Angelo Yeo
am 24 Jan. 2024
(1) A protected model can only be simulated on the same OS that it was created in. You would need to create a version of the protected model for every OS.
(2) Please refer to the doc below to understand what protected model contains.
A protected model file (.slxp) contains derived files that support the options that you select when you create the protected model.
Some of the supported functionality are OS-dependent. For example, to run a protected model in accelerator mode, it requires to generate C code and link it to C-MEX S-Function, which is an OS-specific process.
(3) As you may have seen in the document, the protected model does not contain C code inside, but derived files for your option that will be used for building process.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Protection finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!