Scilab 5.5.0

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.

See the recommended documentation of this function

# soundsec

generates a vector of samples for `t`

seconds at frequency `freq`

Hz.

### Calling Sequence

samples=soundsec(t [,freq])

### Arguments

- t
a 1-by-1 matrix of positive real numbers, the time length to sample.

- freq
a 1-by-1 matrix of positive real number, the frequency of samples per second.

default value is 22050 Hz

### Description

Generates a vector coding time from 0 to `t`

seconds at sampled rate `freq`

.

Samples are always generated to fit in `[0,t[`

(excluding upper bound).

Value 0 for either `t`

or `freq`

return an empty matrx

### Examples

Report an issue | ||

<< sound | Sound file handling | wavread >> |