Contents   Functions      PDF Index |
Purpose
Installation handling and troubleshooting.
Description
For SDT to run in MATLAB the path to SDT functions must be added to the MATLAB search path. Additional libraries are also required that sometimes need an explicit declaration in MATLAB. sdtcheck then packages manual input to alter the user MATLAB settings if needed.
Commands
This command properly defines the MATLAB search path to run SDT. It has to be used at startup if the search path was not saved in your MATLAB session with SDT installed.
% Initialization of SDT in MATLAB path pw0=pwd; cd('path_to_my_sdt') sdtcheck path cd(pw0)
SDT GUI utilities are based on Java and require additional Java libraries to be loaded by MATLAB. To ensure proper SDT GUI running the user needs to alter the default MATLAB classpath.txt.
This setup is highly depending on the MATLAB version
sdtcheck('PatchJavaPathSet-forceStartupDir')Be aware that this command will add a file in your startup directory. Make sure to delete it before launching other MATLAB versions from the same startup directory. Corruption and failed Desktop launches can otherwise occur.
To distribute more intricate examples, SDTools uses patches in the form of zip files downloaded to the fullfile(sdtdef('tempdir'),'sdtdemos') directory and possibly extracted in the same directory. For example
fname=sdtcheck('PatchFile',struct('fname','DbTest.unv','in','DrumBrake.zip'));
will search a DbTest.unv file and if not found will download the DrumBrake.zip set of files where DbTest.unv is expected to be located.
The new ofact solver based on MKL Pardiso requires additional libraries to run. patchMkl packages its installation.
Provides the SDT root directory.
wd=sdtcheck('SdtRootDir')