%% Check Release Compatibility
% Use isMATLABReleaseOlderThan to check whether the current version of MATLAB is older than a specified version.
% Display the current release of MATLAB using matlabRelease.

currentRelease = matlabRelease

% Use isMATLABReleaseOlderThan to check whether the current release is older than "R2020a".

tf = isMATLABReleaseOlderThan("R2020a")

% It is also possible to check whether the current release us older than a given stage or update number.

tf = isMATLABReleaseOlderThan("R2020b","release")
tf = isMATLABReleaseOlderThan("R2020b","prerelease",1)

% Copyright 2020 The MathWorks, Inc.