MATLAB: S-Function Backward Compatibility

s-functionsimulink

Can an S-function compiled in 2018a be used in a model in 2013b?
Please cite the documentation if you know the keywords to find the answer to this question.

Best Answer

I doubt it. Even if it can be used, you might get constant warning messages.
The document says that all example S-function MEX files included in the previous 10 releases can be used in the new version of MATLAB. It is the opposite as what you want.
The best way is to try it out. You don't even need to write your own. Just use one of the examples.
The key-word to search is "S-Function Compatibility" S-Function Compatibility
Related Question