FUNCTION REFERENCE

soundsc

Scale audio samples to [-1, 1] and play them asynchronously.

Scale audio samples to [-1, 1] and play them asynchronously.

Syntax

soundsc(y)

Syntax

soundsc(y, Fs)

Syntax

soundsc(y, [low high])

Syntax

soundsc(y, Fs, [low high])

Syntax

soundsc(y, Fs, nBits, [low high])

By default, the smallest and largest finite samples map to -1 and 1 across all channels. A constant signal scales to silence. An explicit range replaces the minimum and maximum and clips samples outside that range. See sound for the default rate and bit depth.

Example

soundsc([0 0.001 0], 8000, [-1 1]);

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.