MATLAB Answers

0

How to check MATLAB version and choose compatible functions?

Asked by Abdul Basith Ashraf on 11 Nov 2019
Latest activity Answered by Sean de Wolski
on 11 Nov 2019
sgtitle is available in MATLAB R2019b but not in R2018a
suptitle is available in MATLAB R2018a but not in R2019b.
If I'm distributing, how can I check the release to use the compatible function?

  0 Comments

Sign in to comment.

2 Answers

Answer by Sean de Wolski
on 11 Nov 2019

Check out verLessThan.

  0 Comments

Sign in to comment.


Answer by Abdul Basith Ashraf on 11 Nov 2019

v= ver('MATLAB');
if v.Release=="(R2018a)"
%Code
elseif v.Release=="(R2019b)"
%Code
end

  0 Comments

Sign in to comment.