TSTOOL home page | TSTOOL documentation page | TSTOOL installation page | TSTOOL link page

Next: 7.2.3 Working with TSTOOL Up: 7.2 Answers Previous: 7.2.1 Introduction and general
Subsections

- 7.2.2.1 All lines in the `OpenTSTOOL/tstoolbox/mex/*.m` are comments, is this right?
- 7.2.2.2 Where are the precompiled Mex-Files?
- 7.2.2.3 There are more than one file called e.g. amutual.m, why?
- 7.2.2.4 What does the error message ''Attempt to execute SCRIPT ...as a function.'' mean?

## 7.2.2 Installation of TSTOOL

###
7.2.2.1 All lines in the `OpenTSTOOL/tstoolbox/mex/*.m` are comments, is this right?

Yes, this are the comment-texts for the compiled mex functions (e.g. type `help amutual` at the matlab prompt).

###
7.2.2.2 Where are the precompiled Mex-Files?

- Sun - `OpenTSTOOL/tstoolbox/mex/mexsol/*.mexsol`
- SGI - `OpenTSTOOL/tstoolbox/mex/mexsg64/*.mexsg64`
- Linux - `OpenTSTOOL/tstoolbox/mex/mexglx/*.mexglx`
- Windows - `OpenTSTOOL/tstoolbox/mex/dll/*.dll`

###
7.2.2.3 There are more than one file called e.g. amutual.m, why?

For some functions there are up to three versions of the file:

- `OpenTSTOOL/tstoolbox/@signal/amutual.m` Function that invokes the underlying mex function. It uses signal objects as output and input.
- `OpenTSTOOL/tstoolbox/mex/amutual.m` Help text for the compiled mex function (e.g. type `help amutual` on the matlab prompt).
- `OpenTSTOOL/tstoolbox/mex/mexsol/amutual.mexsol,`

  `OpenTSTOOL/tstoolbox/mex/mexsg64/amutual.mexsg64,`

  `OpenTSTOOL/tstoolbox/mex/mexglx/amutual.mexglx,`

  `OpenTSTOOL/tstoolbox/mex/dll/amutual.dll`

  Precompiled mex files for Solaris, SGI, Linux x86 and Windows. Only one of this files may be present on your system, depending on the Version of TSTOOL you have downloaded.

###
7.2.2.4 What does the error message ''Attempt to execute SCRIPT ...as a function.'' mean?

Matlab cannot find the correct mex files for this systems and so it tries to execute the scripts OpenTSTOOL/mex/*.m (which are only the help texts for the mex files). There are many possibilities for this error:

- You downloaded the wrong version of TSTOOL.
- The path setting made by `settspath.m` are not correct. Type `path` at the matlab prompt and look for the path setting for the mex directory (see 7.2.2.3).
- The mex files are not present in the directory noted in 7.2.2.3.

Next: 7.2.3 Working with TSTOOL Up: 7.2 Answers Previous: 7.2.1 Introduction and general Contents