Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

dst, idst

Discrete sine transform

dst and idst are not recommended.

Syntax

y = dst(x)
y = dst(x,n)
x = idst(y)
x = idst(y,n)

Description

The dst function implements the following equation:

y(k)=n=1Nx(n)sin(πknN+1),k=1,...,N

y = dst(x) computes the discrete sine transform of the columns of x. For best performance speed, the number of rows in x should be 2m – 1, for some integer m.

y = dst(x,n) pads or truncates the vector x to length n before transforming.

If x is a matrix, the dst operation is applied to each column.

The idst function implements the following equation:

x(k)=2N+1n=1Ny(n)sin(πknN+1), k=1,...,N

x = idst(y) calculates the inverse discrete sine transform of the columns of y. For best performance speed, the number of rows in y should be 2m – 1, for some integer m.

x = idst(y,n) pads or truncates the vector y to length n before transforming.

If y is a matrix, the idst operation is applied to each column.

Introduced before R2006a

Was this topic helpful?