title: What is the use of S-function in simulink?
body: <p>I have created a simulink model and I need to convert it to C/C++ code using S-function. Can anyone tell me how to create S-function and where and how to use this to generate code?</p>