upsmpl - up-sampler
Up-sample input vectors. The input u can be both double or int32.
y=upsmpl(u,nech[,typ,init])
- u :
Input matrix to be up-sample (int32 or double) of size n,m.
- nech :
Up-sample factor.
- typ :
Type of up-sample
- 0 :
up-sample by repeating values
- 1 :
up-sample by insertion of zeros
- init :
The inital value of the discrete counter, gives the offset of the first output sample.
- y :
Output matrix of size n*nech,m
//vector of random NRZ bit
y=genint(5);
//up-sample by 8 with zero insertion
y=upsmpl(y,8,1);
//3 vectors of random NRZ bit
y=genint(5,3);
//up-sample by 12 by repeating values
y=upsmpl(y,12);
A. Layec