MATLAB R2022aからは、「Simulink.SFunctionBuilder.add()」や「Simulink.SFunctionBuilder.build()」などの関数を使ってSimulinkのS-function Builderとやり取りができます。
これら2つの機能に関するドキュメントは以下のリンクを確認してください:
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!