osx

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CODING/DEVELOP
Introduced first in SolidGeometry 5.3, Creation date: 2023-03-23, Last change: 2025-08-19

simplified version that shows osx version matlab version and sg lib version



See Also: stamp , SGversion , verSG , verSG , verML , verOSX , verJAVA

Example Illustration

 missing image of osx

Syntax

osx=osx

Output Parameter

osx: OSX Release | Matlab Release | SG-Lib Release

Examples


osx




Copyright 2023-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 determines the operating system (OS) version, MATLAB version, and SolidGeometry (SG) library version, and formats them into a string.

Input Parameters

The function does not take any input parameters.

Output

The function returns a string osx that contains the OS version, MATLAB version, and SG library version.

Algorithm Steps

  1. Check if the system is not a Mac using ismac.
  2. If not a Mac:
    • Retrieve the SG library version using SGversion.
    • Get the username using username.
    • If the username contains "lueth" (case-insensitive), adjust the SG version by adding 0.0.
    • Retrieve the hostname using hostname. If available, append it to the output string.
    • Set osx to "unknown".
    • Format the output string as "Windows/Unix | MATLAB version | SG-Lib version | hostname".
  3. If the system is a Mac:
    • Retrieve the SG library version using SGversion.
    • Get the username using username.
    • If the username contains "lueth" (case-insensitive), adjust the SG version by adding 0.0.
    • Retrieve the hostname using hostname. If available, append it to the output string.
    • Retrieve the Java version using verJAVA and extract the relevant part.
    • Get the Mac OS version using the command system('sw_vers') and extract the product version.
    • Format the output string as "Mac OSX | MATLAB version | SG-Lib version | Java version | hostname".
Algorithm explaination created using ChatGPT on 2025-08-19 07:47. (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