by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-25, Last change: 2025-08-18
See Also: smbNewSystem
, smbWhich
, smbFilename
, smbPSLibname
smbPSLibCompile
This function, smbPSLibCompile, is designed to compile a PS Library in the current directory. It is part of the SolidGeometry library and was introduced in version 3.2. The function does not take any input parameters and operates based on the current working directory and specific library paths.
adir using the pwd command.smbPSLibname and stores it in the variable psdir.smbFilename using the cd command.ssc_build function with a specific substring of psdir. This substring is extracted by finding the position of the '+' character in psdir and taking the part of the string from the character after '+' to the second last character.smbFilename is already in the MATLAB path using ispath. If not, it adds this path using addpath.adir.pwd: Returns the current working directory.smbPSLibname: Presumably returns the name of the PS Library.smbFilename: Presumably returns the directory path where the library is located.ssc_build: A function used to build or compile the library.ispath: Checks if a given path is already in the MATLAB path.addpath: Adds a specified directory to the MATLAB path.cd: Changes the current directory.