The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'

2 visualizzazioni (ultimi 30 giorni)
The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'. However, when i used interp to insert data into my oringal data, showing that data inserted isn't zero. Thanks!!!!!
before
after F1 = interp(F1,2)

Risposte (1)

Jonas
Jonas il 16 Set 2022
the description says it inserts zeros AND applies the filter for interpolation. of course the filter changes the zero values.
if you want to just insert additional zeros, use the upsample function or simple dot notation like
sigUp(1:2:end)=oldSig

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by