Skip to main content

matlab-versions

Translate between the identifiers of a MATLAB release. Every release has several, and they are easy to mix up:

Release MATLAB version Runtime version Runtime folder FlexLM licence (lmstat)
R2015b 8.6 9.0 v90 v34
R2016a 9.0 9.0.1 v901 v35
R2021a 9.10 9.10 v910 v45
R2023a 9.14 9.14 R2023a v49
R2024a 24.1 24.1 R2024a v51
  • MATLAB version: what version() and VersionInfo.xml report. It used the 7.x, 8.x and 9.x scheme up to R2023a, then switched to year.half (23.2, 24.1, …).

  • MATLAB Runtime version: what a compiled application needs. It is usually the same as the MATLAB version, but not always (R2012a = 7.17, R2015b = 9.0, R2016a = 9.0.1). The Runtime installs under a folder named v910 up to R2022a and under the release name (R2022b) from R2022b.

  • Licence version: what a client checks out from a FlexLM licence server. lmutil lmstat -a prints it on every checkout line, so a licence server admin can see which release each client runs:

        bob host2 /dev/tty (v51) (lic.example.org/27000 3423), start Tue 11/10 10:15
                           ^^^^^ R2024a
    

The table covers R2006a to R2026b, with evidence and sources for each value. It has no dependencies and needs Python 3.9 or newer.

Install

The package is published on PyPI: pypi.org/project/matlab-versions.

pip install matlab-versions

Python

>>> import matlab_versions as mv
>>> mv.release("R2024a")                       # also "2024a"
Release(name='R2024a', matlab='24.1', runtime='24.1', license=51, evidence={...}, sources={...})
>>> mv.from_matlab("9.10.0.1739362 (R2021a)")  # full version() strings work
Release(name='R2021a', matlab='9.10', runtime='9.10', license=45, ...)
>>> mv.from_runtime("v901").name               # version or install folder
'R2016a'
>>> mv.from_license("v51").name                # also 51, "v51.0"
'R2024a'
>>> mv.release("R2016a").runtime_folder
'v901'
>>> mv.release("R2030a")                       # newer than the table: computed from the rules
Release(name='R2030a', matlab='30.1', runtime='30.1', license=63, evidence={'matlab': 'extrapolated', ...})

Some numbers mean different releases depending on what they are: 9.0 is the MATLAB version of R2016a but the Runtime version of R2015b. So each from_* function reads its input one way only. lookup() returns every possible reading:

>>> [(kind, r.name) for kind, r in mv.lookup("9.0")]
[('matlab', 'R2016a'), ('runtime', 'R2015b')]

lmstat output

>>> for c in mv.parse_lmstat(text):            # full `lmutil lmstat -a` output
...     print(c.feature, c.user, c.host, c.release)
MATLAB bob host2 R2024a

parse_checkout(line) parses a single checkout line and returns a Checkout with user, host, display, version, server, port, handle, start, pid and release. It returns None for any other line.

Command line

$ matlab-versions 9.14 9.0 v51
9.14 (MATLAB version, Runtime)  R2023a  matlab 9.14  runtime 9.14 (R2023a)  license v49
9.0 (MATLAB version)            R2016a  matlab 9.0   runtime 9.0.1 (v901)   license v35
9.0 (Runtime)                   R2015b  matlab 8.6   runtime 9.0 (v90)      license v34
v51 (licence version)           R2024a  matlab 24.1  runtime 24.1 (R2024a)  license v51

$ lmutil lmstat -a -c 27000@licserver | matlab-versions            # one line per checkout
MATLAB  bob     host2   v51     R2024a

$ lmutil lmstat -a -c 27000@licserver | matlab-versions --summary  # count per feature and release
MATLAB  R2024a  1

$ matlab-versions --table    # every release (* = extrapolated)
$ matlab-versions --json     # the full table with rules, sources and caveats

Evidence

Each value in the table has its own evidence level:

  • observed: seen side by side with its release in a primary artefact. That means an installation's VersionInfo.xml, a licence file with a # Rxxxx header above its INCREMENT lines, an lmstat checkout from a client of a known release, or a MathWorks documentation example.
  • documented: listed in a published table (MathWorks or an independent compilation), but not checked against an artefact.
  • extrapolated: follows from the rule, but no source was found.

Sources:

matlab-versions --json lists the sources for every value.

Rules for new releases

MathWorks ships two releases a year. Releases newer than the table resolve automatically and are marked extrapolated:

  • MATLAB and Runtime version: two-digit year, then .1 for "a" and .2 for "b" (R2027a = 27.1).
  • Licence version: from R2007a, exactly +1 per release: 2 * (year - 2008) + 19 + (1 if b else 0).

Only the next 10 releases (five years) past the table are extrapolated. Anything further raises ValueError, because the rules are only known to hold today. Licence versions are whole numbers: v51.0 is accepted, but 24.1 is never a licence version.

To confirm a value, open an issue or pull request with the evidence: a VersionInfo.xml line, an lmstat checkout line or a licence file header. Leave out keys, since only the version field is needed.

Caveats

  • The version on a licence file's INCREMENT lines, and on lmstat's "MATLAB" vNN feature header, is the newest release the licence allows, not what clients run. Only the (vNN) on a checkout line identifies the client.
  • Toolboxes share MATLAB's licence version within a release. The exception is discontinued or frozen products, which keep the number of their last release. For example, Stateflow_Coder stays at 24. Use MATLAB checkouts when you count clients by release.
  • Toolbox product versions (e.g. Statistics and Machine Learning Toolbox 24.1) are not covered.

Disclaimer

Not affiliated with or endorsed by The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. FlexLM and FlexNet are trademarks of Flexera.

License

MIT

Metadata

Release files for matlab-versions 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matlab-versions 0.1.2
File Size Uploaded Provenance Actions
matlab_versions-0.1.2.tar.gz 15.5 kB With provenance Details for matlab_versions-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matlab-versions 0.1.2
File Interpreter ABI Platform Actions
matlab_versions-0.1.2-py3-none-any.whl Python 3 none any Details for matlab_versions-0.1.2-py3-none-any.whl

Total release size: 29.8 kB

Release files / matlab_versions-0.1.2.tar.gz

Download URL matlab_versions-0.1.2.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
05d998c750a6d648bbb7c85a902c853d26e3bf1a4ae0bef55f511f938ae877f4
BLAKE2b-256 checksum
How to use checksums
f22bb5957d131f6d70dfc2ba2e2ee4cab01eb99773fd6d0ce915535d5c7b3449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / matlab_versions-0.1.2-py3-none-any.whl

Download URL matlab_versions-0.1.2-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c40dfbdead12f083248a126f064f3368365bd04804e7b486a26fef29032e46f
BLAKE2b-256 checksum
How to use checksums
bd6f01a1ab0f8fa24ed65964ed82d2fdc183a2e14d5035129770eb7635682aa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for matlab-versions 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for matlab_versions-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page