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

Next: 7. Frequently asked questions Up: 6.25 Class list Previous: 6.25.2 Attributes
Subsections

- 6.25.3.1 append
- 6.25.3.2 cellstr
- 6.25.3.3 char
- 6.25.3.4 display
- 6.25.3.5 get
- 6.25.3.6 length
- 6.25.3.7 `list`
- 6.25.3.8 sort

## 6.25.3 Member functions

###
6.25.3.1 append

Syntax:

- `list = append(list, string)`
- `list = append(list, list)`

Add string(s) to existing list.

###
6.25.3.2 cellstr

`cellstr` return cell array of strings from list `l`.

###
6.25.3.3 char

returns a char array from list `l`.

###
6.25.3.4 display

###
6.25.3.5 get

Syntax:

- `s = get(l, nr)`

returns string number nr from list `l`.

###
6.25.3.6 length

Syntax:

- `len = length(l)`

returns the number of strings in list `l`.

###
6.25.3.7 `list`

Syntax:

- `l = list`

  creates empty list

- `l = list('Hello world')`

  create list with one entry, 'Hello world'

- `l = list('Hello', 'My' , 'World')`

  create list with three entries

- `l = list('Hello', 'My' , 'World')`

  create list with three entries

An object of type list contains a list of strings.

###
6.25.3.8 sort

sort list `l` in increasing order.

Next: 7. Frequently asked questions Up: 6.25 Class list Previous: 6.25.2 Attributes Contents