MATLAB: S function builder through comment line

sfunctionsfunction buildersimulink

Hi
I just want to know how to set the s function builder block parameters through Matlab comments.
For example : I want add on input port in my s function builder block. I’ll go directly Data Properties pane and click add and I’ll give my own names to my input variable.
Consider the same operation I just want to do in programmatically through matlab comments. If give same sample code it’s healthier to my understating.
Regards, Sri Prakash Muni

Best Answer

Hi,
well you cannot interface with the S-Function builder programmatically in MATLAB. As an alternative, you have the legacy code tool that enables generating s-function blocks with scripts.
Regards, Manuel