How to check MATLAB version and choose compatible functions?
108 views (last 30 days)
Show older comments
Abdul Basith Ashraf
on 11 Nov 2019
Edited: Stefanie Schwarz
on 14 Sep 2023
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
Accepted Answer
Sean de Wolski
on 11 Nov 2019
Edited: Stefanie Schwarz
on 14 Sep 2023
Check out verLessThan.
0 Comments
More Answers (2)
Oli Fairfax
on 23 Aug 2021
You can also use the following to keep it on one line:
version('-release')
0 Comments
See Also
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!