How do I create an S function from an .mdl Simulink model?

How do I create an S function from an .mdl Simulink model? I would like to create an S function to protect my “knowhow” in my .mdl files. I’m using complex standalone .mdl models with gui mask and many subsystems without any m code form matlab. Is it possible to create such a S function that the final user can use only the gui mask and the Run button without the possibility to see how the model is built?

Answers (1)

Andreas Goser
Andreas Goser on 5 Apr 2013
Edited: Andreas Goser on 5 Apr 2013
You need to have the product Simulink Coder. Do you have it? Documentation:

2 Comments

How do I check if I have the Simulink Coder? Is this a standard tool or an add-on which needs to be purchased separately? I’m using 2010a Student (for my PhD), therefore my installation has probably some limitations. Due to my Student license, I also don't have access to the link you provided.
The Simulink Coder is not available for the Student Version. In general, you find the products install by typing "ver" in the command window.
I am a bit sceptic if the need for protecticting intellectual property matches with the spirit of the student version (used for course work). But I am sure your university has the Simulink Coder. Contact the MathWorks (or in your cases the reseller's) account manager. They will help.

Sign in to comment.

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Asked:

on 5 Apr 2013

Community Treasure Hunt

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

Start Hunting!