FUNCTION REFERENCE

upsample

Insert zeros between samples.

Insert zeros between samples.

Syntax

upsample(x, n)

Syntax

upsample(x, n, phase)

Inserts n-1 zeros after each sample. phase is an integer from 0 to n-1.

Example

upsample([1 2 3], 2)   % [1 0 2 0 3 0]

Differences from MATLAB: Real numeric 2-D arrays only.

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