stamp
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 5.4, Creation date: 2024-07-15, Last change: 2025-08-18
creates a text line for publishable code with currenct OSX version | Matlab Version | SGlib version
Description
use it as last line to mlx files or publishabe files
See Also: stamp
, osx
, verOSX
, verML
, verSG
Example Illustration
Syntax
stamp
Examples
stamp
Copyright 2024-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)
The function stamp is designed to create a text line for publishable code, indicating the current operating system version, MATLAB version, and SGlib version. It is intended to be used as the last line in MATLAB live scripts or publishable files.
Input Parameters
The function stamp does not take any input parameters.
Algorithm Steps
- Retrieve the Java version using the
verJAVA function. The version string is processed to extract the relevant part up to the second space character.
- Check the operating system using conditional statements:
- macOS (ismac): Use the
osx function to get the macOS version and print it along with the current date and time using dbprintf.
- Windows (ispc): Print the computer type, MATLAB version (
verML), SGlib version (verSG), Java version, and the current date and time using dbprintf.
- Unix (isunix): Similar to Windows, print the computer type, MATLAB version, SGlib version, Java version, and the current date and time using
dbprintf.
- Other: For any other operating system, print the same information as for Windows and Unix.
Switch Conditions
There are no switch conditions in this algorithm. The function uses if-elseif-else statements to handle different operating systems.
Output
The function outputs a formatted string to the console, which includes the operating system or computer type, MATLAB version, SGlib version, Java version, and the current date and time.
Algorithm explaination created using ChatGPT on 2025-08-18 23:17. (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