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

Next: 6.24 Class unit Up: 6.23 Class achse Previous: 6.23.2 Attributes
Subsections

- 6.23.3.1 achse
- 6.23.3.2 cut
- 6.23.3.3 delta
- 6.23.3.4 display
- 6.23.3.5 eq
- 6.23.3.6 first
- 6.23.3.7 horzcat
- 6.23.3.8 label
- 6.23.3.9 name
- 6.23.3.10 quantity
- 6.23.3.11 resolution
- 6.23.3.12 samplerate
- 6.23.3.13 scale
- 6.23.3.14 setdelta
- 6.23.3.15 setfirst
- 6.23.3.16 setname
- 6.23.3.17 setunit
- 6.23.3.18 setvalues
- 6.23.3.19 spacing
- 6.23.3.20 unit

## 6.23.3 Member functions

###
6.23.3.1 achse

achse class constructor

Syntax:

- `a = achse`

  creates default achse object

- `a = achse(axs)`

  copies achse object `axs` into `a`

- `a = achse(unt)`

  creates achse object using unit `unt`, with linear spacing, first = 0, delta = 1

- `a = achse(vec)`

  creates achse object with arbitrary spacing, using values in vec as spacing data

- `a = achse(unt, vec)`

  creates achse object using unit unt with arbitrary spacing, using values in `vec` as spacing data

- `a = achse(unt, first, delta)`

  creates achse object with linear spacing, using delta and first

- `a = achse(unt, first, delta, 'log')`

  creates achse object with logarithmic spacing, using `delta` and `first`

achse used to describe the different dimensions (axes) of a signal object.

Example:

- `a = achse(unit('Hz'), 0.01, 10, 'log')`

  creates a logarithmic frequency axis with values 0.01 Hz, 0.1 Hz, 1 Hz, 10 Hz

- `a = achse(label, samplerate)`

  has the same result as

  `a = achse(unit(label), 0, 1/samplerate)`

see also: delta first horzcat label name quantity resolution samplerate scale setname spacing unit

###
6.23.3.2 cut

Syntax:

- `a = cut(a, start, stop)`

Cut a part out of achse `a`, beginning from index `start` up to index `stop`. `stop` is only needed in case of arbitrary spacing. `cut` ensures the following:

    If values = spacing(achse1, N) and N > n then
          values(n:N) == spacing(cut(achse1, n), N+1-n)

See also: `horzcat`

###
6.23.3.3 delta

###
6.23.3.4 display

###
6.23.3.5 eq

Test if achse `a` and achse `b` are equal.`first` is not (!) taken into account for this test.

###
6.23.3.6 first

###
6.23.3.7 horzcat

###
6.23.3.8 label

###
6.23.3.9 name

###
6.23.3.10 quantity

###
6.23.3.11 resolution

###
6.23.3.12 samplerate

Syntax:

- `rate = samplerate(a)`

`samplerate` returns samplerate of achse object.

###
6.23.3.13 scale

Syntax:

- `r = scale(a,f)`

Scale achses `delta` by factor `f`.

###
6.23.3.14 setdelta

Syntax:

- `a = setdelta(a,f)`

###
6.23.3.15 setfirst

Syntax:

- `a = setfirst(a,f)`

###
6.23.3.16 setname

Syntax:

- `a = setname(a, newname)`

###
6.23.3.17 setunit

Syntax:

- `a = setunit(a,u)`

###
6.23.3.18 setvalues

Syntax:

- `a = setvalues(a, v)`

###
6.23.3.19 spacing

Syntax:

- `v = values(a, len)`

Returns spacing values for linear, logarithmic or arbitary spacing in case of lin. or log. spacing. `len` values are returned. In case of arbitary spacing, all stored values are returned.

###
6.23.3.20 unit

Next: 6.24 Class unit Up: 6.23 Class achse Previous: 6.23.2 Attributes Contents