verML

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-18, Last change: 2025-09-14

returns the currently used Matlab Release

Description

More simple to use than 'ver'

See Also: stamp , verSG , verOSX , isatleastVer , iscalledbycmdline

Example Illustration

 missing image of verML(name)

Syntax

v=verML([name])

Input Parameter

name: Tool to search for

Output Parameter

v: RElease such as 'R2017a'; empty if missing;

Examples


ver
verML('Matlab')
verML('Matlabasasdasd')
verML('Mapping Toolbox')




Copyright 2017-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, verML, is designed to return the release version of a specified MATLAB tool or toolbox. It is a more straightforward alternative to the built-in ver function.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by retrieving the input parameter name using getfuncparams. If no name is provided, it defaults to 'Matlab'.
  2. If the name is 'Matlab', the function retrieves the MATLAB version using the version function.
  3. It extracts the release information from the version string, starting from 'R20' and removes any trailing parenthesis.
  4. If the version string does not contain 'Update', it appends 'Released' to the version string.
  5. If the name is not 'Matlab', the function retrieves the list of all installed toolboxes using the ver function.
  6. It iterates through the list of toolboxes to find a match with the specified name.
  7. If a match is found, it extracts the release version from the toolbox information and returns it.
  8. If no match is found, the function returns an empty value.

Example Usage

Algorithm explaination created using ChatGPT on 2025-08-19 00:35. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21