List of version number for each ML version including numbered updates?

63 visualizzazioni (ultimi 30 giorni)
Is there an overview published - e.g. a list - which answers the following question:
Which ist the exact "version" of each main release or update with a certain number.
e.g.
ML 2020b ==> 9.9.0.123456
ML 2020b update 1 ==> 9.9.0.246802
...
Thank you
  2 Commenti
Adam Danz
Adam Danz il 23 Apr 2021
This doesn't include a list of updates but to see a table of Matlab release names and their corresponding version numbers see the Matlab Wiki page.
Tom Hawkins
Tom Hawkins il 23 Ago 2024
That Wikipedia page no longer contains a table of release names and version numbers.

Accedi per commentare.

Risposta accettata

Steven Lord
Steven Lord il 3 Feb 2021
I'm curious how you would use this information if it was available. If you're planning to use it to ask "Are you using a version that is 'late enough' to have access to a certain feature", use the first three parts of the version number with the verLessThan function. If you just want to display that information (for instance to record in a report the exact release you're using, to potentially aid in reproducibility of your results) you can display the output of the version function.
  12 Commenti
Adam Danz
Adam Danz il 23 Apr 2021
UseCase
I want to use verLessThan to limit a section of code to releases r2018a and later. But since I need to provide the version number and not the release name, I need to open wiki and look it up on the Matlab page, unless there's another method I'm not aware of.
Likewise, if I'm reading someone's code that use verLessThan and release name is not mentioned in the comments, I need to look it up.
It would be nice if we could do something like,
v = version(specificVersion,'-versionOption')
where specificVersion is a string/charvec that specifies any version or release name of Matlab.
For example,
v = version('9.0','-release')
v =
'2016a'
v = version('2018b')
v =
'9.5' % base version number
% not sure how this would be useful, but...
[v d] = version('9.8')
v =
'2020a'
d =
'September 17, 2020'
Steven Lord
Steven Lord il 23 Apr 2021
That's an interesting idea, and I think a reasonable enhancement request to file with Technical Support. It could get challenging, though.
I'll take your word that version 9.0 of MATLAB is part of release R2016a. But version 9.0 would be release R2020b if we're talking about Optimization Toolbox. I'd guess it would be release R2018b or R2019a of Computer Vision Toolbox given that version 9.3 of that toolbox is part of release R2020b. Meanwhile I don't think Symbolic Math Toolbox has reached version 9.0 yet (release R2020b's version of that toolbox is 8.6.)
That's one of the reasons we have release numbers, so you can easily tell if two products have been qualified together and are intended to work together. MATLAB version 9.9 (R2020b) and Symbolic Math Toolbox version 8.6 (R2020b) have the same release number so they are expected to work together.

Accedi per commentare.

Più risposte (1)

Jan
Jan il 3 Feb 2021
Modificato: Jan il 3 Feb 2021
You find list e.g. here:
But these lists do not contain the release numbers of updates.
One of the problems for creating such a list is that MathWorks has changed the naming scheme repeatedly. So updates have been called "SP", "ServicePack" and "Update". The releases have been called "Volume 8", "R11.1", "R13SP2" until they have found the current scheme "R2006a". After version 7.9 they decided to publish 7.10, which let crash many codes cofusing this with 7.1 by a numerical comparison.
I've adjusted my methods for identifying the version and release over a dozen of times now and I do not dare to publish them, except for the simple methods shown above.
This seems to be a standard in modern software development. The jump from Windows 7 to Windows 10 was as smart as calling the "2003" update "2004" to avoid a confusion with Windows Server 2003. The next idea "20H2" was surprising also and even the builtin tools have expected a numerical values, such that a new registry key conatins "20H2" while the formerly used one is "2009".
My conclusion: Do not rely on methods to determine a specific Matlab version or update. Prefer using unit tests, which check, if the code works as expected and if these tests fail, print the question in colorful letters:
fprintf(2, '??? Did you install the latest updates of MATLAB?\n')
  2 Commenti
Bernhard Klingseis
Bernhard Klingseis il 3 Feb 2021
Thanks a lot for your answer. (even if it means more or less 'no').
Adam Danz
Adam Danz il 23 Apr 2021
Nice function, Jan! This is what I was describing as a requested extension of the version function in Steven's answer.
Here's the update if you're maintaining the function
'9.3', 'R2017b'; ...
'9.4', 'R2018a'; ...
'9.5', 'R2018b'; ...
'9.6', 'R2019a'; ...
'9.7', 'R2019b'; ...
'9.8', 'R2020a'; ...
'9.9', 'R2020b'; ...
'9.10', 'R2021a'};

Accedi per commentare.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by