<< ultrwin FOSSEE Signal Processing Toolbox upfirdn >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > unshiftdata

unshiftdata

Inverts the effect of shiftdata

Calling Sequence

Parameters

Description

y=unshiftdata(x,perm,nshifts) Applies the permutation perm or number of shifts nshifts on x to invert shiftdata

Examples

x=testmatrix('magi',3)
x  =

8.    1.    6.
3.    5.    7.
4.    9.    2.
[y,perm,nshifts] = shiftdata(x,2) //Shifts dimension 2
nshifts  =

[]
perm  =

2.    1.
y  =

8.    3.    4.
1.    5.    9.
6.    7.    2.
z=unshiftdata(y,perm,nshifts)
z  =

8.    1.    6.
3.    5.    7.
4.    9.    2.

x=1:5
x  =

1.    2.    3.    4.    5.
[y,perm,nshifts] = shiftdata(x) //Shifts first non-singleton dimension
nshifts  =

1.
perm  =

[]
y  =

1.
2.
3.
4.
5.
//z=unshiftdata(y,perm,nshifts)
z  =

1.    2.    3.    4.    5.

See also


Report an issue
<< ultrwin FOSSEE Signal Processing Toolbox upfirdn >>