
|
  
Upsampling (Matlab/Octave function) Summary | Upsamping inserts zero samples into the signal. It is used for interpolation, together with a filter. |   Discussion of upsampling, downsampling, interpolation, decimation. Note that the terms are used inconsistently in literature, and may depend on the context in casual discussion. |
Matlab function mn_upsample.m Usage | data=mn_upsample(data, factor) | Source code function data=mn_upsample(data, factor)
[nRow, nCol]=size(data);
if nRow > 1
error('need row vector');
end
z=zeros((factor-1), nCol);
d=[data; z];
data=reshape(d, 1, nCol*factor);
  
© Markus Nentwig 2007-2008
The content of this page is provided without any warranty and may not be reproduced without permission.
Comments? Questions?
Please send me a mail!
mnentwig@elisanet.fi
|