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.
To upgrade the “.mexsol” or "mex" files, you just need to remex those files using the “mex” command in the newer version of MATLAB, as described at the link below:
To upgrade the S functions, it is highly you likely that you also just need to use the “mex” command in the newer version of MATLAB (same procedure for “.mexsol”/"mex" files). If that does not work, then you may need to follow the workflow at the link below:
For the “.dll” files, you likely may continue using those files as is, because they are already written in C. If you do need to recompile the “.dll” files, you may use the links below:
Best Answer