Syntax
is=isatleastVer(name,[TB])
Input Parameter
name : | | Release name 'R2017a' |
TB : | | Toolbox name ;default is 'Matlab' |
Output Parameter
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
- name: A string representing the release name, e.g., 'R2017a'.
- TB: (Optional) A string representing the toolbox name. The default is 'Matlab'.
Output
- is: A boolean value, true if the current version is at least the specified version, false otherwise.
Algorithm Steps
- Set the default toolbox name to 'Matlab'.
- Check if a second argument is provided and not empty. If so, use it as the toolbox name.
- Convert the
name
and TB
to uppercase for consistency.
- Ensure the release name starts with 'R'. If not, prepend 'R' and issue a warning.
- Use the function
verML
to get the current version of the specified toolbox.
- Compare the current version with the specified release name using string comparison.
- 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