blob: bb5d5dba12afa4b6717398479331778d616a7729 (
plain)
1
2
3
4
5
6
7
|
//example 2.4 b,c.pg.no.17
x=[3 4 5 6];
xm=3;//denotes 3rd sample has pad
xm=xm-1;//shifting
g=[x(xm-2:-2:1),x(xm:2:length(x))]//decimation
xm=3;
h=[x(1:1/2:length(x))]//step interpolated
|