Using S_function in Matlab/Simulink

thanks for the positive feedback!
I got it.
in addition,I had get the answers from the old topic.

All my problems have been solved.
Thanks for the amazing work you done!
:wink: :wink: :wink:

Best regards,
Gaofei