MATLAB Answers


S-Function Backward Compatibility

Asked by Jason Nicholson on 3 Jun 2018
Latest activity Commented on by Jason Nicholson on 4 Jun 2018
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.


Sign in to comment.



1 Answer

Answer by Fangjun Jiang
on 4 Jun 2018
 Accepted 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

  1 Comment

You are right. The link you provided was one link away from stating exactly what I was looking for:
Sometimes a MEX file created on a newer version of MATLAB runs on
an older version of MATLAB, but this is not supported.

Sign in to comment.