isatleastVer

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

checks the minimal version/release number of matlab



See Also: stamp , verSG , verOSX , iscalledbycmdline

Example Illustration

 missing image of isatleastVer(name,TB)

Syntax

is=isatleastVer(name,[TB])

Input Parameter

name: Release name 'R2017a'
TB: Toolbox name ;default is 'Matlab'

Output Parameter

is: true or false

Examples


isatleastVer('R2017b')
isatleastVer('R2017a')




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, isatleastVer, checks if the current version of MATLAB or a specified toolbox is at least a given release version.

Input Parameters

Output

Algorithm Steps

  1. Set the default toolbox name to 'Matlab'.
  2. Check if a second argument is provided and not empty. If so, use it as the toolbox name.
  3. Convert the name and TB to uppercase for consistency.
  4. Ensure the release name starts with 'R'. If not, prepend 'R' and issue a warning.
  5. Use the function verML to get the current version of the specified toolbox.
  6. Compare the current version with the specified release name using string comparison.
  7. Return true if the current version is greater than or equal to the specified version, otherwise return false.
Algorithm explaination created using ChatGPT on 2025-08-18 23:14. (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